diff options
-rw-r--r-- | engines/sci/graphics/gui32.cpp | 4 | ||||
-rw-r--r-- | engines/sci/graphics/gui32.h | 4 | ||||
-rw-r--r-- | engines/sci/module.mk | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/graphics/gui32.cpp b/engines/sci/graphics/gui32.cpp index 7caab09ae6..9220e83a2b 100644 --- a/engines/sci/graphics/gui32.cpp +++ b/engines/sci/graphics/gui32.cpp @@ -294,11 +294,11 @@ void SciGui32::frameOut() { // Theoretically, leftPos and topPos should be sane // Apparently, sometimes they're not, therefore I'm adding some sanity checks here so that // the hack underneath does not try and draw cels outside the screen coordinates - if (y < 0 || x >= _screen->getWidth()) { + if (x >= _screen->getWidth()) { continue; } - if (y < 0 || y >= _screen->getHeight()) { + if (y >= _screen->getHeight()) { continue; } diff --git a/engines/sci/graphics/gui32.h b/engines/sci/graphics/gui32.h index 9194d9e81e..6098606a35 100644 --- a/engines/sci/graphics/gui32.h +++ b/engines/sci/graphics/gui32.h @@ -57,9 +57,9 @@ public: bool isCursorVisible(); void setCursorShape(GuiResourceId cursorId); void setCursorView(GuiResourceId viewNum, int loopNum, int cellNum, Common::Point *hotspot); - virtual void setCursorPos(Common::Point pos); + void setCursorPos(Common::Point pos); Common::Point getCursorPos(); - virtual void moveCursor(Common::Point pos); + void moveCursor(Common::Point pos); void setCursorZone(Common::Rect zone); int16 getCelWidth(GuiResourceId viewId, int16 loopNo, int16 celNo); diff --git a/engines/sci/module.mk b/engines/sci/module.mk index 8df97d7775..2631e75eaf 100644 --- a/engines/sci/module.mk +++ b/engines/sci/module.mk @@ -34,7 +34,6 @@ MODULE_OBJS := \ engine/state.o \ engine/vm.o \ graphics/gui.o \ - graphics/gui32.o \ graphics/animate.o \ graphics/controls.o \ graphics/cursor.o \ @@ -70,7 +69,8 @@ MODULE_OBJS := \ ifdef ENABLE_SCI32 MODULE_OBJS += \ - engine/kernel32.o + engine/kernel32.o \ + graphics/gui32.o endif # This module can be built as a plugin |