From aa683951fce0442f9c053776aceae8489885fba8 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 9 Feb 2017 00:02:57 +0100 Subject: [PATCH] td: fix GetScreenImage() for OSD-only mode --- libtriple/video_td.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtriple/video_td.cpp b/libtriple/video_td.cpp index c5bb83c..c8df609 100644 --- a/libtriple/video_td.cpp +++ b/libtriple/video_td.cpp @@ -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);