From dc33420c95a167dfb1f431037b1617d7e75bc81a Mon Sep 17 00:00:00 2001 From: stephena Date: Thu, 25 Oct 2012 13:14:09 +0000 Subject: [PATCH] Fixed off-by-one error in comparing maximum scanlines per frame. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2560 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 868cc6be2..23d84db78 100644 --- a/src/emucore/TIA.cxx +++ b/src/emucore/TIA.cxx @@ -1317,7 +1317,7 @@ bool TIA::poke(uInt16 addr, uInt8 value) updateFrame(clock + delay); // If a VSYNC hasn't been generated in time go ahead and end the frame - if(((clock - myClockWhenFrameStarted) / 228) > (Int32)myMaximumNumberOfScanlines) + if(((clock - myClockWhenFrameStarted) / 228) >= (Int32)myMaximumNumberOfScanlines) { mySystem->m6502().stop(); myPartialFrameFlag = false;