- Changed to reflect real framerate, as it was really

off by 20-30% (on frameskip 0)
This commit is contained in:
shashclp 2007-03-27 02:54:13 +00:00
parent 29ada541d4
commit c3443ea1e4
1 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ DWORD WINAPI run( LPVOID lpParameter)
else else
{ {
if (framestoskip < 1) if (framestoskip < 1)
framestoskip = frameskiprate + 1; framestoskip += frameskiprate;
} }
CWindow_RefreshALL(); CWindow_RefreshALL();
@ -500,7 +500,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
if (SPU_ChangeSoundCore(sndcoretype, sndbuffersize) != 0) if (SPU_ChangeSoundCore(sndcoretype, sndbuffersize) != 0)
{ {
MessageBox(hwnd,"Unable to initialize DirectSound","Error",MB_OK); MessageBox(hwnd,"Unable to initialize DirectSound","Error",MB_OK);
return messages.wParam; return -1;
} }
sndvolume = GetPrivateProfileInt("Sound","Volume",100, IniName); sndvolume = GetPrivateProfileInt("Sound","Volume",100, IniName);