aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-11-05 23:58:37 +0000
committerTravis Howell2006-11-05 23:58:37 +0000
commit3ebba5fab9b549d97443ebc058613892e7b15583 (patch)
tree1c958756816c805644808f0d7c2f553c038fd537
parentec177bc6ce7cc7633c1551a7d1ee962d40664f0c (diff)
downloadscummvm-rg350-3ebba5fab9b549d97443ebc058613892e7b15583.tar.gz
scummvm-rg350-3ebba5fab9b549d97443ebc058613892e7b15583.tar.bz2
scummvm-rg350-3ebba5fab9b549d97443ebc058613892e7b15583.zip
Fix mouse glitch regression, due to code re-arrange
svn-id: r24629
-rw-r--r--engines/agos/gfx.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp
index 009367f185..c52bb68e3b 100644
--- a/engines/agos/gfx.cpp
+++ b/engines/agos/gfx.cpp
@@ -986,14 +986,14 @@ void AGOSEngine::setImage(uint16 vga_res_id, bool vgaScript) {
}
void AGOSEngine::setWindowImageEx(uint16 mode, uint16 vga_res) {
- if (!_initMouse) {
- _initMouse = 1;
- vc33_setMouseOn();
- }
-
if (mode == 4) {
vc29_stopAllSounds();
+ if (!_initMouse) {
+ _initMouse = 1;
+ vc33_setMouseOn();
+ }
+
if (getGameType() == GType_ELVIRA1) {
if (_variableArray[299] == 0) {
_variableArray[293] = 0;