aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorMax Horn2009-01-30 15:43:45 +0000
committerMax Horn2009-01-30 15:43:45 +0000
commitf465abb75d81a248e3c553aa5706031b52c7189d (patch)
tree5d4f56d4ecd57d3bb5246387998b93293583223a /graphics/VectorRendererSpec.cpp
parente21f5febdc66ae796a57bdd70fbea2eaf26e1f56 (diff)
downloadscummvm-rg350-f465abb75d81a248e3c553aa5706031b52c7189d.tar.gz
scummvm-rg350-f465abb75d81a248e3c553aa5706031b52c7189d.tar.bz2
scummvm-rg350-f465abb75d81a248e3c553aa5706031b52c7189d.zip
Removed unused area convolution code from VectorRenderer
svn-id: r36148
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 7ae9bb69ff..e8d9eec301 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -194,43 +194,6 @@ VectorRenderer *createRenderer(int mode) {
#endif
}
-#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) {
- PixelType *ptr = 0;
- int newR, newG, newB;
- uint8 r, g, b;
- int yVal;
-
- for (int y = area.top; y < area.bottom; ++y) {
- for (int x = area.left; x < area.right; ++x) {
- newR = newG = newB = 0;
-
- for (int j = 0; j < 3; ++j) {
- yVal = MIN(MAX(y - 1 + j, 0), area.bottom - 1);
-
- for (int i = 0; i < 3; ++i) {
- ptr = (PixelType *)Base::_activeSurface->getBasePtr(MIN(MAX(x - 1 + j, 0), area.right - 1), yVal);
- colorToRGB<PixelFormat>((uint32)*ptr, r, g, b);
-
- newR += r * filter[j][i];
- newG += g * filter[j][i];
- newB += b * filter[j][i];
- }
- }
-
- newR = (newR / filterDiv) + offset;
- newG = (newG / filterDiv) + offset;
- newB = (newB / filterDiv) + offset;
-
- ptr = (PixelType *)Base::_activeSurface->getBasePtr(x, y);
- *ptr = RGBToColor<PixelFormat>(CLIP(newR, 0, 255), CLIP(newG, 0, 255), CLIP(newB, 0, 255));
- }
- }
-}
-#endif
-
template <typename PixelType, typename PixelFormat>
void VectorRendererSpec<PixelType, PixelFormat>::
setGradientColors(uint8 r1, uint8 g1, uint8 b1, uint8 r2, uint8 g2, uint8 b2) {