diff options
author | Torbjörn Andersson | 2006-05-25 23:20:35 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-25 23:20:35 +0000 |
commit | 79819da301f606d799e0f3b8709c37c4cd685238 (patch) | |
tree | 6b2ff3852904509fad24acd2c4071fce56a0e32d | |
parent | 017655682167667cee9d9d2e15e32c075af8ee2d (diff) | |
download | scummvm-rg350-79819da301f606d799e0f3b8709c37c4cd685238.tar.gz scummvm-rg350-79819da301f606d799e0f3b8709c37c4cd685238.tar.bz2 scummvm-rg350-79819da301f606d799e0f3b8709c37c4cd685238.zip |
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
-rw-r--r-- | graphics/cursorman.cpp | 2 | ||||
-rw-r--r-- | gui/ThemeNew.cpp | 1 | ||||
-rw-r--r-- | gui/newgui.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
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()) { |