From 50c9aa1bc1d410e188eba190ae8528cea714fd2e Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sat, 10 Dec 2011 14:16:35 +0100 Subject: GRAPHICS: Fix compiler warnings. --- graphics/VectorRendererSpec.cpp | 4 ++-- 1 file 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 void VectorRendererSpec:: 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(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) || -- cgit v1.2.3