From 2de0d7d42e100b56861c1f95ba8a6bab2cf9ff0d Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sun, 7 Sep 2008 21:45:18 +0000 Subject: Bugfix: Theme loading on platforms which don't support cursor palettes. svn-id: r34427 --- gui/ThemeEngine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 8da4d3d808..17623845b0 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -462,6 +462,8 @@ bool ThemeEngine::addDrawData(const Common::String &data, bool cached) { bool ThemeEngine::loadTheme(Common::String fileName) { unloadTheme(); + warning("Loading theme: %s.\n", fileName.c_str()); + if (fileName != "builtin") { if (fileName.hasSuffix(".zip")) ImageMan.addArchive(fileName); @@ -1004,7 +1006,7 @@ void ThemeEngine::setUpCursor() { bool ThemeEngine::createCursor(const Common::String &filename, int hotspotX, int hotspotY, int scale) { if (!_system->hasFeature(OSystem::kFeatureCursorHasPalette)) - return false; + return true; const Surface *cursor = _bitmaps[filename]; -- cgit v1.2.3