aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBendegúz Nagy2016-08-11 12:10:43 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit13daeb62afac13e877ee398b1aa0e1c9ac294989 (patch)
treeed53e56831be99f9bd55d5559be3e966013d4875
parentf5646efa44bf9103f352ea917e537ab6717d11c1 (diff)
downloadscummvm-rg350-13daeb62afac13e877ee398b1aa0e1c9ac294989.tar.gz
scummvm-rg350-13daeb62afac13e877ee398b1aa0e1c9ac294989.tar.bz2
scummvm-rg350-13daeb62afac13e877ee398b1aa0e1c9ac294989.zip
DM: Make DMEngine::f22_delay and DMEngine::f444_endGame more responsive
-rw-r--r--engines/dm/dm.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index f4ab7f4fbc..9fec0c3349 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -234,7 +234,11 @@ bool DMEngine::hasFeature(EngineFeature f) const {
}
void DMEngine::f22_delay(uint16 verticalBlank) {
- _system->delayMillis(verticalBlank * 20); // Google says most Amiga games had a refreshrate of 50 hz
+ for (uint16 i = 0; i < verticalBlank * 2; ++i) {
+ _eventMan->f357_discardAllInput();
+ _displayMan->updateScreen();
+ _system->delayMillis(10); // Google says most Amiga games had a refreshrate of 50 hz
+ }
}
uint16 DMEngine::f30_getScaledProduct(uint16 val, uint16 scale, uint16 vale2) {
@@ -628,6 +632,7 @@ T0444017:
curPalette[i] = darkBluePalette[i];
curPalette[15] = D09_RGB_WHITE;
_displayMan->f436_STARTEND_FadeToPalette(curPalette);
+ _displayMan->updateScreen();
if (waitBeforeDrawingRestart)
f22_delay(300);