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/sci/graphics/cursor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/sci/graphics') diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp index 56177db9f3..bcddd16083 100644 --- a/engines/sci/graphics/cursor.cpp +++ b/engines/sci/graphics/cursor.cpp @@ -514,9 +514,7 @@ void GfxCursor::kernelSetMacCursor(GuiResourceId viewNum, int loopNum, int celNu return; } - CursorMan.replaceCursor(macCursor->getSurface(), macCursor->getWidth(), macCursor->getHeight(), - macCursor->getHotspotX(), macCursor->getHotspotY(), macCursor->getKeyColor()); - CursorMan.replaceCursorPalette(macCursor->getPalette(), 0, 256); + CursorMan.replaceCursor(macCursor); delete macCursor; kernelShow(); -- cgit v1.2.3