win32: fix frame count offset

This commit is contained in:
gocha 2012-08-24 21:37:54 +09:00
parent 1b8208f4a6
commit 712d2ec062
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}