aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
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/VectorRenderer.h
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/VectorRenderer.h')
-rw-r--r--graphics/VectorRenderer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index 377933e890..b5fa4cb6cf 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -114,6 +114,7 @@ public:
kTriangleRight
};
+#ifndef DISABLE_FANCY_THEMES
enum ConvolutionData {
kConvolutionSoftBlur,
kConvolutionHardBlur,
@@ -129,6 +130,7 @@ public:
int divisor;
int offset;
};
+#endif
/**
* Draws a line by considering the special cases for optimization.
@@ -501,6 +503,7 @@ public:
virtual void disableShadows() { _disableShadows = true; }
virtual void enableShadows() { _disableShadows = false; }
+#ifndef DISABLE_FANCY_THEMES
/**
* Applies a convolution matrix on the given surface area.
* Call applyConvolutionMatrix() instead if you want to use
@@ -526,6 +529,7 @@ public:
virtual void applyConvolutionMatrix(const ConvolutionData id, const Common::Rect &area) {
areaConvolution(area, _convolutionData[id].matrix, _convolutionData[id].divisor, _convolutionData[id].offset);
}
+#endif
/**
* Applies a whole-screen shading effect, used before opening a new dialog.
@@ -547,9 +551,9 @@ protected:
int _gradientFactor; /**< Multiplication factor of the active gradient */
int _gradientBytes[3]; /**< Color bytes of the active gradient, used to speed up calculation */
+#ifndef DISABLE_FANCY_THEMES
static const ConvolutionDataSet _convolutionData[kConvolutionMAX];
-
- static const int _dimPercentValue = 256 * 50 / 100; /**< default value for screen dimming (50%) */
+#endif
};
} // end of namespace Graphics