aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorGregory Montoir2006-11-24 18:18:48 +0000
committerGregory Montoir2006-11-24 18:18:48 +0000
commit82601174f3f540d2a939c946bb2170819562cddb (patch)
tree03a800f6dfec362e08f2f5c5688e0f1b6e974015 /engines
parentd1eb83a4703035510acd765b05f3c9786934f5bf (diff)
downloadscummvm-rg350-82601174f3f540d2a939c946bb2170819562cddb.tar.gz
scummvm-rg350-82601174f3f540d2a939c946bb2170819562cddb.tar.bz2
scummvm-rg350-82601174f3f540d2a939c946bb2170819562cddb.zip
update the screen at the end of each engine cycle, it should make the mouse cursor more responsive
svn-id: r24781
Diffstat (limited to 'engines')
-rw-r--r--engines/touche/touche.cpp5
-rw-r--r--engines/touche/ui.cpp1
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index e7ed77e4a3..e1ce7e4d31 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -254,6 +254,8 @@ void ToucheEngine::mainLoop() {
if ((cycleCounter % 2) == 0) {
fadePaletteFromFlags();
}
+
+ _system->updateScreen();
int delay = _system->getMillis() - frameTimeStamp;
delay = (_fastMode ? 10 : cycleDelay) - delay;
if (delay < 1) {
@@ -3243,13 +3245,11 @@ void ToucheEngine::setPalette(int firstColor, int colorCount, int rScale, int gS
void ToucheEngine::updateScreenArea(int x, int y, int w, int h) {
_system->copyRectToScreen(_offscreenBuffer + y * 640 + x, 640, x, y, w, h);
- _system->updateScreen();
}
void ToucheEngine::updateEntireScreen() {
int h = (_flagsTable[606] != 0) ? 400 : 352;
_system->copyRectToScreen(_offscreenBuffer, 640, 0, 0, 640, h);
- _system->updateScreen();
}
void ToucheEngine::updateDirtyScreenAreas() {
@@ -3271,7 +3271,6 @@ void ToucheEngine::updateDirtyScreenAreas() {
_system->copyRectToScreen(_offscreenBuffer + r.top * 640 + r.left, 640, r.left, r.top, r.width(), r.height());
--_menuRedrawCounter;
}
- _system->updateScreen();
}
}
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp
index d2c2f1c3eb..df836e6c70 100644
--- a/engines/touche/ui.cpp
+++ b/engines/touche/ui.cpp
@@ -514,6 +514,7 @@ void ToucheEngine::printStatusString(const char *str) {
Graphics::drawRect(_offscreenBuffer, 640, 0, 0, 640, 16, 0xD6, 0xD8);
Graphics::drawString16(_offscreenBuffer, 640, 0xFF, 0, 0, str);
updateScreenArea(0, 0, 640, 16);
+ _system->updateScreen();
}
void ToucheEngine::clearStatusString() {