diff options
author | Johannes Schickel | 2009-02-16 21:17:14 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-02-16 21:17:14 +0000 |
commit | 11862f3db3e462ef2c795e4ab75d29d5606d4f5d (patch) | |
tree | 8d4610e97e3217324da056f70e236687972d4513 | |
parent | 0d927db83856ef12f8d819410331cf946a646674 (diff) | |
download | scummvm-rg350-11862f3db3e462ef2c795e4ab75d29d5606d4f5d.tar.gz scummvm-rg350-11862f3db3e462ef2c795e4ab75d29d5606d4f5d.tar.bz2 scummvm-rg350-11862f3db3e462ef2c795e4ab75d29d5606d4f5d.zip |
Cleanup.
svn-id: r38381
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 11 |
1 files 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<VECTOR_RENDERER_FORMAT>(); - return new VectorRendererSpec<uint16>(format); -#else +#endif + PixelFormat format = g_system->getOverlayFormat(); switch (mode) { case GUI::ThemeEngine::kGfxStandard16bit: return new VectorRendererSpec<OverlayColor>(format); +#ifndef DISABLE_FANCY_THEMES case GUI::ThemeEngine::kGfxAntialias16bit: return new VectorRendererAA<OverlayColor>(format); +#endif + default: + break; } return 0; - -#endif } template <typename PixelType> |