mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 19:33:03 +00:00
Fix flash rate for NTSC
This commit is contained in:
parent
8fcdab3d69
commit
873e5c1fcd
@ -2385,12 +2385,14 @@ void VideoUpdateFlash()
|
||||
{
|
||||
static UINT nTextFlashCnt = 0;
|
||||
|
||||
nTextFlashCnt++;
|
||||
// Flash rate:
|
||||
// . NTSC : 60/16 ~= 4Hz
|
||||
// . PAL : 50/16 ~= 3Hz
|
||||
nTextFlashCnt = (nTextFlashCnt+1) & 0xf;
|
||||
|
||||
// BUG: In unthrottled CPU mode, flash rate should not be affected
|
||||
if(nTextFlashCnt == 60/3) // Flash rate = 3Hz (every 333ms)
|
||||
if(nTextFlashCnt == 0)
|
||||
{
|
||||
nTextFlashCnt = 0;
|
||||
g_bTextFlashState = !g_bTextFlashState;
|
||||
|
||||
// Redraw any FLASHing chars if any text showing. NB. No FLASH g_nAppMode for 80 cols
|
||||
|
Loading…
Reference in New Issue
Block a user