diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeEngine.cpp | 4 | ||||
-rw-r--r-- | gui/ThemeEngine.h | 2 | ||||
-rw-r--r-- | gui/newgui.cpp | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 2df6b5ec47..9cecefc6cd 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -48,7 +48,9 @@ using namespace Graphics; const char *ThemeEngine::rendererModeLabels[] = { "Disabled GFX", "Standard Renderer (16bpp)", +#ifndef DISABLE_FANCY_THEMES "Antialiased Renderer (16bpp)" +#endif }; @@ -320,7 +322,9 @@ void ThemeEngine::screenInit(bool backBuffer) { void ThemeEngine::setGraphicsMode(GraphicsMode mode) { switch (mode) { case kGfxStandard16bit: +#ifndef DISABLE_FANCY_THEMES case kGfxAntialias16bit: +#endif _bytesPerPixel = sizeof(uint16); screenInit<uint16>(kEnableBackCaching); break; diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index 67b07b71f6..f5173c015b 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -238,7 +238,9 @@ public: enum GraphicsMode { kGfxDisabled = 0, /** No GFX */ kGfxStandard16bit, /** 2BPP with the standard (aliased) renderer. */ +#ifndef DISABLE_FANCY_THEMES kGfxAntialias16bit, /** 2BPP with the optimized AA renderer. */ +#endif kGfxMAX }; diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 4aaf65bcab..6f3b2e28fd 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -93,7 +93,11 @@ NewGui::NewGui() : _redrawStatus(kRedrawDisabled), if (themefile.compareToIgnoreCase("default") == 0) themefile = "builtin"; +#ifndef DISABLE_FANCY_THEMES ConfMan.registerDefault("gui_renderer", 2); +#else + ConfMan.registerDefault("gui_renderer", 1); +#endif ThemeEngine::GraphicsMode gfxMode = (ThemeEngine::GraphicsMode)ConfMan.getInt("gui_renderer"); loadNewTheme(themefile, gfxMode); |