aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/mads_menus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/mads_menus.cpp')
-rw-r--r--engines/m4/mads_menus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/mads_menus.cpp b/engines/m4/mads_menus.cpp
index a67b933860..01bfe96e25 100644
--- a/engines/m4/mads_menus.cpp
+++ b/engines/m4/mads_menus.cpp
@@ -529,7 +529,7 @@ void DragonMainMenuView::updateState() {
spr = _menuItem->getFrame(1);
// FIXME: We assume that the transparent color is the color of the top left pixel
- byte *transparentColor = (byte *)spr->pixels;
+ byte *transparentColor = spr->getBasePtr(0, 0);
spr->copyTo(this, spr->xOffset - 140, spr->yOffset - spr->height(), (int)*transparentColor);
_vm->_mouse->cursorOn();