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

Function updateFlashRate

source/NTSC.cpp:437–452  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

435
436//===========================================================================
437inline void updateFlashRate() // TODO: Flash rate should be constant (regardless of CPU speed)
438{
439 // BUG: In unthrottled CPU mode, flash rate should not be affected
440
441 // Flash rate:
442 // . NTSC : 60/16 ~= 4Hz
443 // . PAL : 50/16 ~= 3Hz
444 if ((++g_nTextFlashCounter & 0xF) == 0)
445 g_nTextFlashMask ^= -1; // 16-bits
446
447 // The old way to handle flashing was
448 // if ((SW_TEXT || SW_MIXED) ) // && !SW_80COL) // FIX: FLASH 80-Column
449 // g_nTextFlashMask = true;
450 // The new way is to check the active char set, inlined:
451 // if (0 == g_nVideoCharSet && 0x40 == (m & 0xC0)) // Flash only if mousetext not active
452}
453
454#if 0
455#define updateFramebufferMonitorSingleScanline(signal,table) \

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected