MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / updateVideoScannerHorzEOLSimple

Function updateVideoScannerHorzEOLSimple

source/NTSC.cpp:659–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657//===========================================================================
658
659inline void updateVideoScannerHorzEOLSimple()
660{
661 if (VIDEO_SCANNER_MAX_HORZ == ++g_nVideoClockHorz)
662 {
663 if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY) // Only write to video memory when in visible part of display (GH#1143)
664 {
665 *(uint32_t*)g_pVideoAddress = 0 | ALPHA32_MASK; // VT_COLOR_IDEALIZED: TEXT -> HGR can leave junk on RHS (GH#1106)
666 *(getScanlineNextInbetween()) = 0 | ALPHA32_MASK; // ...and clear junk on RHS for non-'50% Scan lines'
667 }
668
669 g_nVideoClockHorz = 0;
670
671 if (++g_nVideoClockVert == g_videoScannerMaxVert)
672 {
673 g_nVideoClockVert = 0;
674
675 updateFlashRate();
676 }
677
678 if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY)
679 {
680 updateVideoScannerAddress();
681 }
682 }
683}
684
685// NOTE: This writes out-of-bounds for a 560x384 framebuffer
686inline void updateVideoScannerHorzEOL()

Calls 3

getScanlineNextInbetweenFunction · 0.85
updateFlashRateFunction · 0.85

Tested by

no test coverage detected