From cb581c61b26269296e3e9f4837ae793e562a84db Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 9 Nov 2008 12:38:30 +0000 Subject: Partially merge classes Theme and ThemeEngine (saves another couple KB), somebody (Tanoku?) should do a proper merge svn-id: r34951 --- gui/theme.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gui/theme.cpp') 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] == '.') { -- cgit v1.2.3