From dcc72fe29e9b77c1f6dfad4612d5b32b64b610dd Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 2 Sep 2008 17:51:08 +0000 Subject: Massive refactoring/cleanup on the theme engine/parser. svn-id: r34285 --- gui/newgui.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gui/newgui.cpp') diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 2291d9e3c1..097a38291a 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -28,7 +28,7 @@ #include "graphics/cursorman.h" #include "gui/newgui.h" #include "gui/dialog.h" -#include "gui/ThemeRenderer.h" +#include "gui/ThemeEngine.h" #include "common/config-manager.h" @@ -96,7 +96,7 @@ NewGui::NewGui() : _redrawStatus(kRedrawDisabled), // themefile += ".zip"; ConfMan.registerDefault("gui_renderer", 2); - ThemeRenderer::GraphicsMode gfxMode = (ThemeRenderer::GraphicsMode)ConfMan.getInt("gui_renderer"); + ThemeEngine::GraphicsMode gfxMode = (ThemeEngine::GraphicsMode)ConfMan.getInt("gui_renderer"); loadNewTheme(themefile, gfxMode); _themeChange = false; @@ -106,14 +106,14 @@ NewGui::~NewGui() { delete _theme; } -bool NewGui::loadNewTheme(const Common::String &filename, ThemeRenderer::GraphicsMode gfx) { - if (_theme && filename == _theme->getThemeFileName() && gfx == _theme->getThemeRenderer()) +bool NewGui::loadNewTheme(const Common::String &filename, ThemeEngine::GraphicsMode gfx) { + if (_theme && filename == _theme->getThemeFileName() && gfx == _theme->getGraphicsMode()) return true; Common::String oldTheme = (_theme != 0) ? _theme->getThemeFileName() : ""; - if (gfx == ThemeRenderer::kGfxDisabled) - gfx = (ThemeRenderer::GraphicsMode)ConfMan.getInt("gui_renderer"); + if (gfx == ThemeEngine::kGfxDisabled) + gfx = (ThemeEngine::GraphicsMode)ConfMan.getInt("gui_renderer"); if (_theme) _theme->disable(); @@ -126,7 +126,7 @@ bool NewGui::loadNewTheme(const Common::String &filename, ThemeRenderer::Graphic delete _theme; _theme = 0; - _theme = new ThemeRenderer(filename, gfx); + _theme = new ThemeEngine(filename, gfx); if (!_theme) return (!oldTheme.empty() ? loadNewTheme(oldTheme) : false); -- cgit v1.2.3