aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-13 18:40:26 +1100
committerPaul Gilbert2012-10-13 18:40:26 +1100
commit4ed054e18054f93f5640e2559fd0d834720c7861 (patch)
tree7b5d614616cd2c38dcbb701e37bae61cae8501f8
parent756dc956b54ac645feee3427d129789b7b3a3aa5 (diff)
downloadscummvm-rg350-4ed054e18054f93f5640e2559fd0d834720c7861.tar.gz
scummvm-rg350-4ed054e18054f93f5640e2559fd0d834720c7861.tar.bz2
scummvm-rg350-4ed054e18054f93f5640e2559fd0d834720c7861.zip
HOPKINS: Fix to show the ScummVM cursor at the correct position
-rw-r--r--engines/hopkins/events.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/hopkins/events.cpp b/engines/hopkins/events.cpp
index bdea8af67d..6ed5a9c37e 100644
--- a/engines/hopkins/events.cpp
+++ b/engines/hopkins/events.cpp
@@ -167,10 +167,13 @@ void EventsManager::CHANGE_MOUSE(int id) {
destP += _vm->_globals.OBJL;
}
+ // Calculate the X offset within the pointer image to the actual cursor data
+ int xOffset = !mouse_linux ? 10 : 20;
+
// Set the ScummVM cursor from the surface
Graphics::PixelFormat pixelFormat = g_system->getScreenFormat();
g_system->setMouseCursor(cursorPixels, _vm->_globals.OBJL, _vm->_globals.OBJH,
- 0, 0, 0, true, &pixelFormat);
+ xOffset, 0, 0, true, &pixelFormat);
// Delete the cursor surface
delete[] cursorPixels;