HOPKINS: Fix to show the ScummVM cursor at the correct position

This commit is contained in:
Paul Gilbert 2012-10-13 18:40:26 +11:00
parent 756dc956b5
commit 4ed054e180

View File

@ -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;