[Scummvm-cvs-logs] SF.net SVN: scummvm:[34427] scummvm/branches/gsoc2008-gui/gui/ThemeEngine. cpp
Tanoku at users.sourceforge.net
Tanoku at users.sourceforge.net
Sun Sep 7 23:45:19 CEST 2008
Revision: 34427
http://scummvm.svn.sourceforge.net/scummvm/?rev=34427&view=rev
Author: Tanoku
Date: 2008-09-07 21:45:18 +0000 (Sun, 07 Sep 2008)
Log Message:
-----------
Bugfix: Theme loading on platforms which don't support cursor palettes.
Modified Paths:
--------------
scummvm/branches/gsoc2008-gui/gui/ThemeEngine.cpp
Modified: scummvm/branches/gsoc2008-gui/gui/ThemeEngine.cpp
===================================================================
--- scummvm/branches/gsoc2008-gui/gui/ThemeEngine.cpp 2008-09-07 21:43:36 UTC (rev 34426)
+++ scummvm/branches/gsoc2008-gui/gui/ThemeEngine.cpp 2008-09-07 21:45:18 UTC (rev 34427)
@@ -462,6 +462,8 @@
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 @@
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];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list