Fix video mode for line-0: Color (PAL Monitor), when mixed GR+TEXT

This commit is contained in:
tomcw 2022-06-26 16:09:41 +01:00
parent 5b1328b465
commit bba86863c3
1 changed files with 7 additions and 2 deletions

View File

@ -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)
{