From 029ea006f6cf234244ca936304b6e50b82958102 Mon Sep 17 00:00:00 2001 From: stephena Date: Thu, 25 Oct 2012 16:24:55 +0000 Subject: [PATCH] Changed in scanlines per frame are now actually done every frame, and every 8 frames. This is necessary for ROMs that 'abuse' the system and have inconsistent scanline counts on every single frame. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2561 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/emucore/TIA.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emucore/TIA.cxx b/src/emucore/TIA.cxx index 23d84db78..d90c1bba5 100644 --- a/src/emucore/TIA.cxx +++ b/src/emucore/TIA.cxx @@ -623,7 +623,7 @@ inline void TIA::endFrame() myPALFrameCounter++; // Recalculate framerate. attempting to auto-correct for scanline 'jumps' - if(myFrameCounter % 8 == 0 && myAutoFrameEnabled) + if(myAutoFrameEnabled) { myFramerate = (myScanlineCountForLastFrame > 285 ? 15600.0 : 15720.0) / myScanlineCountForLastFrame;