aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJody Northup2009-06-26 08:50:11 +0000
committerJody Northup2009-06-26 08:50:11 +0000
commit2859c9130462e66df705d534f9a70d1430628be7 (patch)
tree4d35b05d92e7f0fb2de37e34a4530a81acde524a /engines/scumm
parentdc873f5e89f2622a8e4d3857a28971f30db932e0 (diff)
downloadscummvm-rg350-2859c9130462e66df705d534f9a70d1430628be7.tar.gz
scummvm-rg350-2859c9130462e66df705d534f9a70d1430628be7.tar.bz2
scummvm-rg350-2859c9130462e66df705d534f9a70d1430628be7.zip
Changed cursor manager functions to take *Graphics::PixelFormat with default parameter of NULL (and initialize NULL pointers with CLUT8), rather than taking a Graphics::PixelFormat with default parameter of Graphics::PixelFormat::createFormatCLUT8()
svn-id: r41900
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/cursor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index 190c337c63..66ac68bd95 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -113,11 +113,12 @@ void ScummEngine_v6::setCursorTransparency(int a) {
void ScummEngine::updateCursor() {
int transColor = (_game.heversion >= 80) ? 5 : 255;
#ifdef ENABLE_RGB_COLOR
+ Graphics::PixelFormat format = _system->getScreenFormat();
CursorMan.replaceCursor(_grabbedCursor, _cursor.width, _cursor.height,
_cursor.hotspotX, _cursor.hotspotY,
(_game.platform == Common::kPlatformNES ? _grabbedCursor[63] : transColor),
(_game.heversion == 70 ? 2 : 1),
- _system->getScreenFormat());
+ &format);
#else
CursorMan.replaceCursor(_grabbedCursor, _cursor.width, _cursor.height,
_cursor.hotspotX, _cursor.hotspotY,