aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/cursors.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-02 23:58:11 +0200
committerJohannes Schickel2013-08-03 02:52:32 +0200
commit6eb9c8da9e37e9afcb2c6d378c30d8ea88c0b8de (patch)
treed357703f16facf985978a14887ed86836c35783f /engines/mohawk/cursors.cpp
parent8f73027d8273b482386d8c114674876b11069957 (diff)
downloadscummvm-rg350-6eb9c8da9e37e9afcb2c6d378c30d8ea88c0b8de.tar.gz
scummvm-rg350-6eb9c8da9e37e9afcb2c6d378c30d8ea88c0b8de.tar.bz2
scummvm-rg350-6eb9c8da9e37e9afcb2c6d378c30d8ea88c0b8de.zip
MOHAWK: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/mohawk/cursors.cpp')
-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 c7bd03678f..7cef566e13 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(surface->pixels, surface->w, surface->h, hotspotX, hotspotY, 0);
+ CursorMan.replaceCursor(surface->getBasePtr(0, 0), surface->w, surface->h, hotspotX, hotspotY, 0);
CursorMan.replaceCursorPalette(mhkSurface->getPalette(), 0, 256);
} else {
Graphics::PixelFormat pixelFormat = g_system->getScreenFormat();
- CursorMan.replaceCursor(surface->pixels, surface->w, surface->h, hotspotX, hotspotY, pixelFormat.RGBToColor(255, 255, 255), false, &pixelFormat);
+ CursorMan.replaceCursor(surface->getBasePtr(0, 0), surface->w, surface->h, hotspotX, hotspotY, pixelFormat.RGBToColor(255, 255, 255), false, &pixelFormat);
}
_vm->_needsUpdate = true;