[Scummvm-cvs-logs] scummvm master -> 50c9aa1bc1d410e188eba190ae8528cea714fd2e

fuzzie fuzzie at fuzzie.org
Sat Dec 10 14:18:40 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
50c9aa1bc1 GRAPHICS: Fix compiler warnings.


Commit: 50c9aa1bc1d410e188eba190ae8528cea714fd2e
    https://github.com/scummvm/scummvm/commit/50c9aa1bc1d410e188eba190ae8528cea714fd2e
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-12-10T05:16:35-08:00

Commit Message:
GRAPHICS: Fix compiler warnings.

Changed paths:
    graphics/VectorRendererSpec.cpp



diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 9e4119d..588e17b 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) ||






More information about the Scummvm-git-logs mailing list