aboutsummaryrefslogtreecommitdiff
path: root/kyra/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2005-10-30 19:58:51 +0000
committerJohannes Schickel2005-10-30 19:58:51 +0000
commitcd6e35cdb85b3213a6eb4032697a942991141197 (patch)
treec141d599bc68a50d91b7d0136ce5013935797548 /kyra/screen.cpp
parente9e4b886aa4a4cda68def726dc8cae7c715bfafd (diff)
downloadscummvm-rg350-cd6e35cdb85b3213a6eb4032697a942991141197.tar.gz
scummvm-rg350-cd6e35cdb85b3213a6eb4032697a942991141197.tar.bz2
scummvm-rg350-cd6e35cdb85b3213a6eb4032697a942991141197.zip
Implemented initSceneObjectList, fixed bug with wrong drawn mouse,
also fixed a bug in loadCharacterShapes. svn-id: r19375
Diffstat (limited to 'kyra/screen.cpp')
-rw-r--r--kyra/screen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kyra/screen.cpp b/kyra/screen.cpp
index a7c78b0495..939f5c6360 100644
--- a/kyra/screen.cpp
+++ b/kyra/screen.cpp
@@ -1694,10 +1694,15 @@ void Screen::copyMouseToScreen() {
// if disableMouse
// return
+ restoreMouseRect();
+
int width = _mouseWidth;
int height = _mouseHeight;
int xpos = _vm->mouseX() - _mouseXOffset;
int ypos = _vm->mouseY() - _mouseYOffset;
+ if (xpos < -1 || ypos < -1) {
+ return;
+ }
int xposTemp = xpos;
int yposTemp = ypos;