From fe5dddf901eb40ac3c04b7d01bd078d65dafc5ab Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 9 Aug 2019 20:45:27 +0100 Subject: GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor --- engines/composer/composer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/composer') 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); -- cgit v1.2.3