From e94421f3bc9a0f7151ca46a300a840cd7708a644 Mon Sep 17 00:00:00 2001 From: tomch Date: Sun, 22 Feb 2009 14:39:50 +0000 Subject: [PATCH] Fix flash rate for NTSC --- AppleWin/source/Video.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/AppleWin/source/Video.cpp b/AppleWin/source/Video.cpp index b5b38b57..e952dc7a 100644 --- a/AppleWin/source/Video.cpp +++ b/AppleWin/source/Video.cpp @@ -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