From 7e56e9344928605d8adee34556a8fa3b2bcdc2ef Mon Sep 17 00:00:00 2001 From: tomcw Date: Mon, 4 Apr 2016 22:15:47 +0100 Subject: [PATCH] Always updateMonoTables() since previous video-mode could have had a non-white RGB value . eg. when cycling backwards from Amber to TV --- source/NTSC.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/NTSC.cpp b/source/NTSC.cpp index 85747027..deec0a79 100644 --- a/source/NTSC.cpp +++ b/source/NTSC.cpp @@ -1509,6 +1509,10 @@ void NTSC_SetVideoStyle() // (int v, int s) switch ( g_eVideoType ) { case VT_COLOR_TVEMU: // VT_COLOR_TV: // 0: + r = 0xFF; + g = 0xFF; + b = 0xFF; + updateMonochromeTables( r, g, b ); if (half) { g_pFuncUpdateBnWPixel = updatePixelBnWColorTVSingleScanline; @@ -1522,6 +1526,10 @@ void NTSC_SetVideoStyle() // (int v, int s) case VT_COLOR_STANDARD: // VT_COLOR_MONITOR: //1: default: + r = 0xFF; + g = 0xFF; + b = 0xFF; + updateMonochromeTables( r, g, b ); if (half) { g_pFuncUpdateBnWPixel = updatePixelBnWMonitorSingleScanline;