diff options
-rw-r--r-- | gui/GuiManager.cpp | 4 | ||||
-rw-r--r-- | gui/ThemeEngine.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/GuiManager.cpp b/gui/GuiManager.cpp index 4b84901e7d..cebb48a00e 100644 --- a/gui/GuiManager.cpp +++ b/gui/GuiManager.cpp @@ -35,10 +35,6 @@ #include "graphics/cursorman.h" -#ifdef MACOSX -#include <CoreFoundation/CoreFoundation.h> -#endif - DECLARE_SINGLETON(GUI::GuiManager); namespace GUI { diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 6e622ac758..839137e1da 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -43,6 +43,10 @@ #include "gui/ThemeParser.h" #include "gui/ThemeData.h" +#ifdef MACOSX +#include <CoreFoundation/CoreFoundation.h> +#endif + #define GUI_ENABLE_BUILTIN_THEME namespace GUI { @@ -1280,7 +1284,7 @@ Common::String ThemeEngine::getThemeFile(const Common::String &id) { Common::FSNode node(id); // If the given id is a full path we'll just use it - if (node.exists() && (node.isDirectory() || (node.getName().hasSuffix(".zip") && !node.isDirectory()))) + if (node.exists() && (node.isDirectory() || node.getName().hasSuffix(".zip"))) return id; // FIXME: |