mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-25 14:31:01 +00:00
Fix flash rate for NTSC
This commit is contained in:
parent
d0964e0d42
commit
e94421f3bc
@ -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