From c3443ea1e42a562ca889bd406ba88726eaa908df Mon Sep 17 00:00:00 2001 From: shashclp Date: Tue, 27 Mar 2007 02:54:13 +0000 Subject: [PATCH] - Changed to reflect real framerate, as it was really off by 20-30% (on frameskip 0) --- desmume/src/windows/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index ad8b71458..9c25dcc9a 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -382,7 +382,7 @@ DWORD WINAPI run( LPVOID lpParameter) else { if (framestoskip < 1) - framestoskip = frameskiprate + 1; + framestoskip += frameskiprate; } CWindow_RefreshALL(); @@ -500,7 +500,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, if (SPU_ChangeSoundCore(sndcoretype, sndbuffersize) != 0) { MessageBox(hwnd,"Unable to initialize DirectSound","Error",MB_OK); - return messages.wParam; + return -1; } sndvolume = GetPrivateProfileInt("Sound","Volume",100, IniName);