diff options
author | Max Horn | 2008-11-09 12:38:30 +0000 |
---|---|---|
committer | Max Horn | 2008-11-09 12:38:30 +0000 |
commit | cb581c61b26269296e3e9f4837ae793e562a84db (patch) | |
tree | 9633df18ba00f44ffe0fbe0b5ce00cd7cc726b79 /gui/theme.cpp | |
parent | 43e7832e0e40f177cb5d85adc025cf346d46de09 (diff) | |
download | scummvm-rg350-cb581c61b26269296e3e9f4837ae793e562a84db.tar.gz scummvm-rg350-cb581c61b26269296e3e9f4837ae793e562a84db.tar.bz2 scummvm-rg350-cb581c61b26269296e3e9f4837ae793e562a84db.zip |
Partially merge classes Theme and ThemeEngine (saves another couple KB), somebody (Tanoku?) should do a proper merge
svn-id: r34951
Diffstat (limited to 'gui/theme.cpp')
-rw-r--r-- | gui/theme.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp index 6e05ab9701..36bf9c5191 100644 --- a/gui/theme.cpp +++ b/gui/theme.cpp @@ -27,13 +27,15 @@ #include "common/archive.h" #include "common/unzip.h" +#include "gui/ThemeEngine.h" + namespace GUI { Theme::Theme() : _loadedThemeX(0), _loadedThemeY(0) {} Theme::~Theme() {} -const Graphics::Font *Theme::loadFontFromArchive(const Common::String &filename) { +const Graphics::Font *ThemeEngine::loadFontFromArchive(const Common::String &filename) { Common::Archive *arch = 0; const Graphics::NewFont *font = 0; @@ -65,7 +67,7 @@ const Graphics::Font *Theme::loadFontFromArchive(const Common::String &filename) return font; } -const Graphics::Font *Theme::loadFont(const Common::String &filename) { +const Graphics::Font *ThemeEngine::loadFont(const Common::String &filename) { const Graphics::Font *font = 0; Common::String cacheFilename = genCacheFilename(filename.c_str()); Common::File fontFile; @@ -101,7 +103,7 @@ const Graphics::Font *Theme::loadFont(const Common::String &filename) { return font; } -Common::String Theme::genCacheFilename(const char *filename) { +Common::String ThemeEngine::genCacheFilename(const char *filename) { Common::String cacheName(filename); for (int i = cacheName.size() - 1; i >= 0; --i) { if (cacheName[i] == '.') { |