aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-12-10 14:16:35 +0100
committerAlyssa Milburn2011-12-10 14:16:35 +0100
commit50c9aa1bc1d410e188eba190ae8528cea714fd2e (patch)
tree2c6573d67de00e3f063495a1b0127f63d0879d8c
parent9d3eb2ebd7311a4ed3c69b7bc4637dee6dbfe530 (diff)
downloadscummvm-rg350-50c9aa1bc1d410e188eba190ae8528cea714fd2e.tar.gz
scummvm-rg350-50c9aa1bc1d410e188eba190ae8528cea714fd2e.tar.bz2
scummvm-rg350-50c9aa1bc1d410e188eba190ae8528cea714fd2e.zip
GRAPHICS: Fix compiler warnings.
-rw-r--r--graphics/VectorRendererSpec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 9e4119d356..588e17b6cb 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -285,7 +285,7 @@ precalcGradient(int h) {
template<typename PixelType>
void VectorRendererSpec<PixelType>::
gradientFill(PixelType *ptr, int width, int x, int y) {
- bool ox = (y & 1 == 1);
+ bool ox = ((y & 1) == 1);
int stripSize;
int curGrad = 0;
@@ -310,7 +310,7 @@ gradientFill(PixelType *ptr, int width, int x, int y) {
colorFill<PixelType>(ptr, ptr + width, _gradCache[curGrad + 1]);
} else {
for (int j = x; j < x + width; j++, ptr++) {
- bool oy = (j & 1 == 1);
+ bool oy = ((j & 1) == 1);
if ((ox && oy) ||
((grad == 2 || grad == 3) && ox && !oy) ||