aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-01-11 01:49:31 +0200
committerFilippos Karapetis2016-01-11 01:50:11 +0200
commitd76fe85af4c160a83dd82e6df0fc6cb5e9f68790 (patch)
treeab86e5930a2578358780a01a71e017518688d747
parent38df43fe55a699b491e8e716762abea8b779cd92 (diff)
downloadscummvm-rg350-d76fe85af4c160a83dd82e6df0fc6cb5e9f68790.tar.gz
scummvm-rg350-d76fe85af4c160a83dd82e6df0fc6cb5e9f68790.tar.bz2
scummvm-rg350-d76fe85af4c160a83dd82e6df0fc6cb5e9f68790.zip
LAB: Prevent duplicate processing of input
-rw-r--r--engines/lab/dispman.cpp4
-rw-r--r--engines/lab/lab.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp
index 41f51ddbed..8be1772826 100644
--- a/engines/lab/dispman.cpp
+++ b/engines/lab/dispman.cpp
@@ -403,11 +403,11 @@ void DisplayMan::drawHLine(uint16 x1, uint16 y, uint16 x2, byte color) {
}
void DisplayMan::screenUpdate() {
+ _vm->_event->processInput();
+
_vm->_system->copyRectToScreen(_displayBuffer, _screenWidth, 0, 0, _screenWidth, _screenHeight);
_vm->_console->onFrame();
_vm->_system->updateScreen();
-
- _vm->_event->processInput();
}
void DisplayMan::createScreen(bool hiRes) {
diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp
index d94c8bfeae..03ef06e614 100644
--- a/engines/lab/lab.cpp
+++ b/engines/lab/lab.cpp
@@ -225,7 +225,6 @@ void LabEngine::changeVolume(int delta) {
}
void LabEngine::waitTOF() {
- _event->processInput();
_graphics->screenUpdate();
uint32 now;