aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-10-29 19:48:15 +0000
committerJohannes Schickel2008-10-29 19:48:15 +0000
commit98b0c4b33cd2a994be2f0756ac5ab1421b223269 (patch)
treeedc2261e62e237a4f9b8e9077d650053d7f248f6 /graphics/VectorRendererSpec.cpp
parent08f1e004151ab25f098b1a1de3fda90e00457164 (diff)
downloadscummvm-rg350-98b0c4b33cd2a994be2f0756ac5ab1421b223269.tar.gz
scummvm-rg350-98b0c4b33cd2a994be2f0756ac5ab1421b223269.tar.bz2
scummvm-rg350-98b0c4b33cd2a994be2f0756ac5ab1421b223269.zip
Committed my patch from -devel, which reintroduces DISABLE_FANCY_THEMES to strip functionallity in theme renderer uneeded by small devices.
svn-id: r34864
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index e9a8e15566..4aa5d320e0 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -159,14 +159,17 @@ VectorRenderer *createRenderer(int mode) {
case GUI::ThemeEngine::kGfxStandard16bit:
return new VectorRendererSpec<uint16, ColorMasks<565> >;
+#ifndef DISABLE_FANCY_THEMES
case GUI::ThemeEngine::kGfxAntialias16bit:
return new VectorRendererAA<uint16, ColorMasks<565> >;
+#endif
default:
return 0;
}
}
+#ifndef DISABLE_FANCY_THEMES
template <typename PixelType, typename PixelFormat>
void VectorRendererSpec<PixelType, PixelFormat>::
areaConvolution(const Common::Rect &area, const int filter[3][3], int filterDiv, int offset) {
@@ -201,6 +204,7 @@ areaConvolution(const Common::Rect &area, const int filter[3][3], int filterDiv,
}
}
}
+#endif
template <typename PixelType, typename PixelFormat>
void VectorRendererSpec<PixelType, PixelFormat>::
@@ -1409,7 +1413,7 @@ drawRoundedSquareFakeBevel(int x1, int y1, int r, int w, int h, int amount) {
-
+#ifndef DISABLE_FANCY_THEMES
/********************************************************************
* ANTIALIASED PRIMITIVES drawing algorithms - VectorRendererAA
@@ -1587,5 +1591,6 @@ drawCircleAlg(int x1, int y1, int r, PixelType color, VectorRenderer::FillMode f
}
}
+#endif
}