td: fix GetScreenImage() for OSD-only mode

This commit is contained in:
Stefan Seyfried
2017-02-09 00:02:57 +01:00
parent a5aeb217c5
commit aa683951fc

View File

@@ -1206,6 +1206,8 @@ bool cVideo::GetScreenImage(unsigned char * &video, int &xres, int &yres, bool g
/* red */
*q = ((*q * a2 ) + (r * a)) >> 8;
q++;
if (! get_video)
*q = 0xff;
q++; /* skip alpha byte */
}
munmap(map, GFXFB_SIZE);