| 657 | //=========================================================================== |
| 658 | |
| 659 | inline 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 |
| 686 | inline void updateVideoScannerHorzEOL() |
no test coverage detected