From 712d2ec062d6c682cb547a204167f65ef5d5a93c Mon Sep 17 00:00:00 2001 From: gocha Date: Fri, 24 Aug 2012 21:37:54 +0900 Subject: [PATCH] win32: fix frame count offset --- win32/wsnes9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 8701c142..96e53857 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -3013,7 +3013,7 @@ void S9xOnSNESPadRead() if (lastTime - lastGUIUpdateTime >= guiUpdateFrequency) { UpdateToolWindows(); - S9xUpdateFrameCounter(); + S9xUpdateFrameCounter(-1); InvalidateRect(GUI.hWnd, NULL, FALSE); lastGUIUpdateTime = lastTime; } @@ -3528,7 +3528,7 @@ int WINAPI WinMain( DWORD lastTime = timeGetTime(); if (lastTime - lastGUIUpdateTime >= guiUpdateFrequency) { UpdateToolWindows(); - S9xUpdateFrameCounter(); + S9xUpdateFrameCounter(-1); InvalidateRect(GUI.hWnd, NULL, FALSE); lastGUIUpdateTime = lastTime; }