aboutsummaryrefslogtreecommitdiff
path: root/engines/queen
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-17 23:55:42 +0000
committerTorbjörn Andersson2006-04-17 23:55:42 +0000
commit614fc253a9b3264c8f4d71b9c9227fb32c2f2ac9 (patch)
tree716e26e2106761abbc20f8aaf6fbf41297270c9f /engines/queen
parentd13720477243040b247d7ee6e6e18991e3eb4f63 (diff)
downloadscummvm-rg350-614fc253a9b3264c8f4d71b9c9227fb32c2f2ac9.tar.gz
scummvm-rg350-614fc253a9b3264c8f4d71b9c9227fb32c2f2ac9.tar.bz2
scummvm-rg350-614fc253a9b3264c8f4d71b9c9227fb32c2f2ac9.zip
Moved updateScreen() into delay() for smoother mouse cursor movement. This may
possibly make some other calls to updateScreen() unnecessary, but it's the backend's responsibility to ignore unnecessary calls. svn-id: r21994
Diffstat (limited to 'engines/queen')
-rw-r--r--engines/queen/display.cpp4
-rw-r--r--engines/queen/input.cpp4
2 files changed, 3 insertions, 5 deletions
diff --git a/engines/queen/display.cpp b/engines/queen/display.cpp
index 7c9573612a..d66f7a6934 100644
--- a/engines/queen/display.cpp
+++ b/engines/queen/display.cpp
@@ -169,7 +169,6 @@ void Display::palSet(const uint8 *pal, int start, int end, bool updateScreen) {
}
_system->setPalette(tempPal, start, numColors);
if (updateScreen) {
- _system->updateScreen();
_vm->input()->delay(20);
}
}
@@ -957,7 +956,6 @@ void Display::blankScreenEffect1() {
--y;
}
_system->copyRectToScreen(buf, 32, x, y, 32, 32);
- _system->updateScreen();
_vm->input()->delay(10);
}
}
@@ -986,7 +984,6 @@ void Display::blankScreenEffect2() {
memset(p, c, 2);
memset(p + SCREEN_W, c, 2);
_system->copyRectToScreen(p, SCREEN_W, x, y, 2, 2);
- _system->updateScreen();
_vm->input()->delay(10);
}
}
@@ -1008,7 +1005,6 @@ void Display::blankScreenEffect3() {
++i;
_system->copyRectToScreen(p, SCREEN_W, x, y, 2, 2);
}
- _system->updateScreen();
_vm->input()->delay(10);
}
}
diff --git a/engines/queen/input.cpp b/engines/queen/input.cpp
index d6b4f4cb44..84e91f7a1c 100644
--- a/engines/queen/input.cpp
+++ b/engines/queen/input.cpp
@@ -132,10 +132,12 @@ void Input::delay(uint amount) {
}
}
+ _system->updateScreen();
+
if (amount == 0)
break;
- _system->delayMillis((amount > 20) ? 20 : amount);
+ _system->delayMillis((amount > 10) ? 10 : amount);
} while (_system->getMillis() < end);
}