From 11862f3db3e462ef2c795e4ab75d29d5606d4f5d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 16 Feb 2009 21:17:14 +0000 Subject: Cleanup. svn-id: r38381 --- graphics/VectorRendererSpec.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index 4808f0847d..a662af04c7 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -210,20 +210,21 @@ void colorFill(PixelType *first, PixelType *last, PixelType color) { VectorRenderer *createRenderer(int mode) { #ifdef DISABLE_FANCY_THEMES assert(mode == GUI::ThemeEngine::kGfxStandard16bit); - Graphics::PixelFormat format = createPixelFormat(); - return new VectorRendererSpec(format); -#else +#endif + PixelFormat format = g_system->getOverlayFormat(); switch (mode) { case GUI::ThemeEngine::kGfxStandard16bit: return new VectorRendererSpec(format); +#ifndef DISABLE_FANCY_THEMES case GUI::ThemeEngine::kGfxAntialias16bit: return new VectorRendererAA(format); +#endif + default: + break; } return 0; - -#endif } template -- cgit v1.2.3