mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
HOPKINS: Fix to show the ScummVM cursor at the correct position
This commit is contained in:
parent
756dc956b5
commit
4ed054e180
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user