diff dynamin/gui/theme.d @ 106:acdbb30fee7e

Port to D2. Most of the effort was dealing with immutable and const.
author Jordan Miner <jminer7@gmail.com>
date Mon, 17 Dec 2012 23:41:50 -0600
parents 5c8c1c2e12c0
children
line wrap: on
line diff
--- a/dynamin/gui/theme.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/theme.d	Mon Dec 17 23:41:50 2012 -0600
@@ -64,7 +64,7 @@
 	for(int i = 0; i < height; ++i) {
 		oddRow = i % squareSize2 < squareSize;
 		for(int j = 0; j < width; ++j) {
-			if(oddRow ^ j % squareSize2 < squareSize)
+			if(oddRow ^ (j % squareSize2 < squareSize))
 				data[j+i*width] = pixel1;
 			else
 				data[j+i*width] = pixel2;