From bba86863c360bf97337e65d223f1a9a4577407af Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 26 Jun 2022 16:09:41 +0100 Subject: [PATCH] Fix video mode for line-0: Color (PAL Monitor), when mixed GR+TEXT --- source/NTSC.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/NTSC.cpp b/source/NTSC.cpp index 4b3cf900..29d35ba3 100644 --- a/source/NTSC.cpp +++ b/source/NTSC.cpp @@ -743,8 +743,13 @@ inline void updateVideoScannerHorzEOL_SHR() //=========================================================================== inline void updateVideoScannerAddress() { - if (g_nVideoMixed && g_nVideoClockVert >= VIDEO_SCANNER_Y_MIXED && GetVideo().GetVideoRefreshRate() == VR_50HZ) // GH#763 - g_nColorBurstPixels = 0; // instantaneously kill color-burst! + if (g_nVideoMixed && GetVideo().GetVideoRefreshRate() == VR_50HZ) // GH#763 + { + if (g_nVideoClockVert >= VIDEO_SCANNER_Y_MIXED) + g_nColorBurstPixels = 0; // instantaneously kill color-burst! + else if (g_nVideoClockVert == 0 && (GetVideo().GetVideoMode() & VF_TEXT) == 0) + g_nColorBurstPixels = 1024; // setup for line-0 (when TEXT is off), ie. so GetColorBurst() returns true below (GH#1119) + } if (g_pFuncUpdateGraphicsScreen == updateScreenSHR) {