aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-16 03:19:16 +0200
committerJohannes Schickel2012-06-16 03:28:43 +0200
commit60a6ce70c1e792f14169641a50a9a43c8b65eb10 (patch)
tree11e9ba350f6414dd7678c5da1dc4c72202edecb5 /engines
parent57e0381b62790b894bb0f10f01531c629147d645 (diff)
downloadscummvm-rg350-60a6ce70c1e792f14169641a50a9a43c8b65eb10.tar.gz
scummvm-rg350-60a6ce70c1e792f14169641a50a9a43c8b65eb10.tar.bz2
scummvm-rg350-60a6ce70c1e792f14169641a50a9a43c8b65eb10.zip
MOHAWK: Get rid of casts on CursorManager::replaceCursor calls.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/cursors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp
index 47a7d0225b..e73d4ed6a3 100644
--- a/engines/mohawk/cursors.cpp
+++ b/engines/mohawk/cursors.cpp
@@ -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;