aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorVicent Marti2008-08-15 13:50:08 +0000
committerVicent Marti2008-08-15 13:50:08 +0000
commit57e2c128df4cfa4674bead48a0ac8640b9c99781 (patch)
treecafb814ec9388f490cb84111a607c702ff0cbf5a /gui
parent1b0c29cb015e00d26db44391f994867f15d26f53 (diff)
downloadscummvm-rg350-57e2c128df4cfa4674bead48a0ac8640b9c99781.tar.gz
scummvm-rg350-57e2c128df4cfa4674bead48a0ac8640b9c99781.tar.bz2
scummvm-rg350-57e2c128df4cfa4674bead48a0ac8640b9c99781.zip
Bugfix: Cross cursor animation disabled when switching themes/resolutions on the fly.
svn-id: r33899
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeRenderer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp
index f33e152630..27409d8192 100644
--- a/gui/ThemeRenderer.cpp
+++ b/gui/ThemeRenderer.cpp
@@ -208,8 +208,11 @@ void ThemeRenderer::refresh() {
init();
if (_enabled) {
_system->showOverlay();
- CursorMan.replaceCursorPalette(_cursorPal, 0, MAX_CURS_COLORS);
- CursorMan.replaceCursor(_cursor, _cursorWidth, _cursorHeight, _cursorHotspotX, _cursorHotspotY, 255, _cursorTargetScale);
+
+ if (_useCursor) {
+ CursorMan.replaceCursorPalette(_cursorPal, 0, MAX_CURS_COLORS);
+ CursorMan.replaceCursor(_cursor, _cursorWidth, _cursorHeight, _cursorHotspotX, _cursorHotspotY, 255, _cursorTargetScale);
+ }
}
}
@@ -374,7 +377,7 @@ bool ThemeRenderer::loadTheme(Common::String fileName) {
error("Could not load default embeded theme");
}
else if (!loadThemeXML(fileName)) {
- warning("Could not parse custom theme '%s'.\nFalling back to default theme", fileName.c_str());
+ warning("Could not parse custom theme '%s'. Falling back to default theme", fileName.c_str());
if (!loadDefaultXML()) // if we can't load the embeded theme, this is a complete failure
error("Could not load default embeded theme");