diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 4 |
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) || |