aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoryinsimei2017-06-16 10:48:10 +0200
committerEugene Sandulenko2017-07-13 18:27:45 +0200
commit0eb18c26276ac15c28fa2fb5f6163999eeeb9caf (patch)
tree9e42cae73b370812de48ac576da4386258e7a554 /engines
parentbbde5f4bf4d46bc0c6f32cc197f698aa89676f70 (diff)
downloadscummvm-rg350-0eb18c26276ac15c28fa2fb5f6163999eeeb9caf.tar.gz
scummvm-rg350-0eb18c26276ac15c28fa2fb5f6163999eeeb9caf.tar.bz2
scummvm-rg350-0eb18c26276ac15c28fa2fb5f6163999eeeb9caf.zip
SLUDGE: set to right delay time
Diffstat (limited to 'engines')
-rw-r--r--engines/sludge/main_loop.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sludge/main_loop.cpp b/engines/sludge/main_loop.cpp
index 8b12dddac4..a7b209f039 100644
--- a/engines/sludge/main_loop.cpp
+++ b/engines/sludge/main_loop.cpp
@@ -60,6 +60,7 @@ HWND hMainWindow = NULL;
int realWinWidth = 640, realWinHeight = 480;
extern float cameraZoom;
+extern int desiredfps;
extern int specialSettings;
extern inputType input;
extern variableStack *noStack;
@@ -381,7 +382,7 @@ int main_loop(const char *filename)
handleInput();
sludgeDisplay();
handleSoundLists();
- g_system->delayMillis(100);
+ g_system->delayMillis(1000 / desiredfps);
#if 0
Wait_Frame();
#endif