mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
azbox: default to manual blitting
to check if kernel-autoblit is getting usable, use "AZBOX_KERNEL_BLIT=1" environment variable
This commit is contained in:
@@ -870,10 +870,10 @@ void CFbAccel::_blit()
|
||||
#define FBIO_BLIT 0x22
|
||||
#define FBIO_SET_MANUAL_BLIT _IOW('F', 0x21, __u8)
|
||||
#endif
|
||||
static bool azblit = getenv("AZBOX_MANUAL_BLIT") ? true : false;
|
||||
void CFbAccel::blit()
|
||||
static bool autoblit = getenv("AZBOX_KERNEL_BLIT") ? true : false;
|
||||
void CFbAccel::_blit()
|
||||
{
|
||||
if (!azblit)
|
||||
if (autoblit)
|
||||
return;
|
||||
// blit
|
||||
if (ioctl(fb->fd, FBIO_BLIT) < 0)
|
||||
|
@@ -418,8 +418,8 @@ fprintf(stderr, "CFrameBuffer::setMode avail: %d active: %d\n", available, activ
|
||||
#define FBIO_SET_MANUAL_BLIT _IOW('F', 0x21, __u8)
|
||||
#define FBIO_BLIT 0x22
|
||||
#endif
|
||||
// set manual blit if AZBOX_MANUAL_BLIT environment variable is set
|
||||
unsigned char tmp = getenv("AZBOX_MANUAL_BLIT") ? 1 : 0;
|
||||
// set auto blit if AZBOX_KERNEL_BLIT environment variable is set
|
||||
unsigned char tmp = getenv("AZBOX_KERNEL_BLIT") ? 0 : 1;
|
||||
if (ioctl(fd, FBIO_SET_MANUAL_BLIT, &tmp)<0)
|
||||
perror("FBIO_SET_MANUAL_BLIT");
|
||||
|
||||
|
Reference in New Issue
Block a user