aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorCameron Cawley2019-08-09 20:45:27 +0100
committerFilippos Karapetis2019-08-09 23:58:32 +0300
commitfe5dddf901eb40ac3c04b7d01bd078d65dafc5ab (patch)
tree96dff48a310a3873fb9fc6cb48454997a26aba17 /engines/composer
parent4667aae4c407a3a54f44e07227897cf077f82fe2 (diff)
downloadscummvm-rg350-fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab.tar.gz
scummvm-rg350-fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab.tar.bz2
scummvm-rg350-fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab.zip
GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/composer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp
index bd486e8324..6aafec276c 100644
--- a/engines/composer/composer.cpp
+++ b/engines/composer/composer.cpp
@@ -105,9 +105,7 @@ Common::Error ComposerEngine::run() {
_screen.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
Graphics::Cursor *cursor = Graphics::makeDefaultWinCursor();
- CursorMan.replaceCursor(cursor->getSurface(), cursor->getWidth(), cursor->getHeight(), cursor->getHotspotX(),
- cursor->getHotspotY(), cursor->getKeyColor());
- CursorMan.replaceCursorPalette(cursor->getPalette(), cursor->getPaletteStartIndex(), cursor->getPaletteCount());
+ CursorMan.replaceCursor(cursor);
delete cursor;
_console = new Console(this);