diff options
author | Torbjörn Andersson | 2006-11-07 19:58:48 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-11-07 19:58:48 +0000 |
commit | 4c7eaf5c55c9f762fd8ebd64d174cc6e11c70d46 (patch) | |
tree | f5f4d4c708ecf0b7745d613cee919e98716ca9c8 /gui | |
parent | c38ee89a159b09cde9af9b09cf7ef28da86e031e (diff) | |
download | scummvm-rg350-4c7eaf5c55c9f762fd8ebd64d174cc6e11c70d46.tar.gz scummvm-rg350-4c7eaf5c55c9f762fd8ebd64d174cc6e11c70d46.tar.bz2 scummvm-rg350-4c7eaf5c55c9f762fd8ebd64d174cc6e11c70d46.zip |
Only set up / tear down the custom cursor if _useCursor is true.
svn-id: r24648
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeModern.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/ThemeModern.cpp b/gui/ThemeModern.cpp index 406de21015..621d57c49e 100644 --- a/gui/ThemeModern.cpp +++ b/gui/ThemeModern.cpp @@ -170,7 +170,8 @@ void ThemeModern::enable() { init(); resetupGuiRenderer(); resetDrawArea(); - setUpCursor(); + if (_useCursor) + setUpCursor(); _system->showOverlay(); clearAll(); _enabled = true; @@ -178,8 +179,10 @@ void ThemeModern::enable() { void ThemeModern::disable() { _system->hideOverlay(); - PaletteMan.popCursorPalette(); - CursorMan.popCursor(); + if (_useCursor) { + PaletteMan.popCursorPalette(); + CursorMan.popCursor(); + } _enabled = false; } |