From 79819da301f606d799e0f3b8709c37c4cd685238 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 25 May 2006 23:20:35 +0000 Subject: The GUI never asked for the cursor to be visible. I'm not sure why that used to work before the cursor manager. Oh well, the launcher should have a visible cursor again, knock on wood. svn-id: r22641 --- graphics/cursorman.cpp | 2 ++ gui/ThemeNew.cpp | 1 + gui/newgui.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp index c1b8e38a92..51d897052d 100644 --- a/graphics/cursorman.cpp +++ b/graphics/cursorman.cpp @@ -48,6 +48,8 @@ bool CursorManager::showMouse(bool visible) { return false; _cursorStack.top()->_visible = visible; + + // Should work, even if there's just a dummy cursor on the stack. return g_system->showMouse(visible); } diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index ca50e5d11a..9aeaf99dc4 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -1551,6 +1551,7 @@ OverlayColor ThemeNew::calcDimColor(OverlayColor col) { void ThemeNew::setUpCursor() { PaletteMan.pushCursorPalette(_cursorPal, 0, MAX_CURS_COLORS); CursorMan.pushCursor(_cursor, _cursorWidth, _cursorHeight, _cursorHotspotX, _cursorHotspotY, 255, _cursorTargetScale); + CursorMan.showMouse(true); } void ThemeNew::createCursor() { diff --git a/gui/newgui.cpp b/gui/newgui.cpp index f0d58d8982..c02c472594 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -158,6 +158,7 @@ void NewGui::runLoop() { PaletteMan.pushCursorPalette(palette, 0, 4); CursorMan.pushCursor(NULL, 0, 0, 0, 0); + CursorMan.showMouse(true); } while (!_dialogStack.empty() && activeDialog == _dialogStack.top()) { -- cgit v1.2.3