diff options
author | Paul Gilbert | 2009-03-07 07:12:10 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-03-07 07:12:10 +0000 |
commit | 979c1e0f6ad0376ab35f908f28377528fd6aad69 (patch) | |
tree | e12354f4238803516c6e3bf30cedc6a4195b372f /engines/cruise/gfxModule.cpp | |
parent | 63eda8cf3c4401eac700c5534198cc4e204cf176 (diff) | |
download | scummvm-rg350-979c1e0f6ad0376ab35f908f28377528fd6aad69.tar.gz scummvm-rg350-979c1e0f6ad0376ab35f908f28377528fd6aad69.tar.bz2 scummvm-rg350-979c1e0f6ad0376ab35f908f28377528fd6aad69.zip |
Fixed some method parameters, changed the main loop to a method of the engine class, and moved the frame delay code to the main loop to make the game more responsive to events
svn-id: r39180
Diffstat (limited to 'engines/cruise/gfxModule.cpp')
-rw-r--r-- | engines/cruise/gfxModule.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp index 3671b01b0e..8a21842503 100644 --- a/engines/cruise/gfxModule.cpp +++ b/engines/cruise/gfxModule.cpp @@ -222,10 +222,6 @@ void gfxModuleData_flipScreen(void) { flip(); } -extern bool bFastMode; - -static uint32 lastTick = 0, lastTickDebug = 0; - void flip() { int i; byte paletteRGBA[256 * 4]; @@ -244,24 +240,6 @@ void flip() { g_system->copyRectToScreen(globalScreen, 320, 0, 0, 320, 200); g_system->updateScreen(); - - uint32 currentTick = g_system->getMillis(); - - if (currentTick >= (lastTickDebug + 10)) { - lastTickDebug = currentTick; - - if (_vm->getDebugger()->isAttached()) - _vm->getDebugger()->onFrame(); - } - - if (!bFastMode) { - uint32 speed = 50; - if (lastTick + speed > currentTick) { - g_system->delayMillis(lastTick + speed - currentTick); - } - } - - lastTick = g_system->getMillis(); } void drawSolidBox(int32 x1, int32 y1, int32 x2, int32 y2, uint8 colour) { |