mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-26 22:38:17 +00:00
MOHAWK: Get rid of casts on CursorManager::replaceCursor calls.
This commit is contained in:
parent
57e0381b62
commit
60a6ce70c1
@ -121,11 +121,11 @@ void MystCursorManager::setCursor(uint16 id) {
|
||||
|
||||
// Myst ME stores some cursors as 24bpp images instead of 8bpp
|
||||
if (surface->format.bytesPerPixel == 1) {
|
||||
CursorMan.replaceCursor((byte *)surface->pixels, surface->w, surface->h, hotspotX, hotspotY, 0);
|
||||
CursorMan.replaceCursor(surface->pixels, surface->w, surface->h, hotspotX, hotspotY, 0);
|
||||
CursorMan.replaceCursorPalette(mhkSurface->getPalette(), 0, 256);
|
||||
} else {
|
||||
Graphics::PixelFormat pixelFormat = g_system->getScreenFormat();
|
||||
CursorMan.replaceCursor((byte *)surface->pixels, surface->w, surface->h, hotspotX, hotspotY, pixelFormat.RGBToColor(255, 255, 255), false, &pixelFormat);
|
||||
CursorMan.replaceCursor(surface->pixels, surface->w, surface->h, hotspotX, hotspotY, pixelFormat.RGBToColor(255, 255, 255), false, &pixelFormat);
|
||||
}
|
||||
|
||||
_vm->_needsUpdate = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user