Commit eab076a7eef0e056ec2aadffbd3109dbf5752cb9

Philipp Wiesemann 2015-06-04T17:52:27

Fixed not needed calculation in test program.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c
index d6c1aff..287df5a 100644
--- a/test/testdrawchessboard.c
+++ b/test/testdrawchessboard.c
@@ -39,7 +39,7 @@ DrawChessBoard(SDL_Renderer * renderer)
 	for( ; row < 8; row++)
 	{
 		column = row%2;
-		x = x + column;
+		x = column;
 		for( ; column < 4+(row%2); column++)
 		{
 			SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
@@ -51,7 +51,6 @@ DrawChessBoard(SDL_Renderer * renderer)
 			x = x + 2;
 			SDL_RenderFillRect(renderer, &rect);
 		}
-		x=0;
 	}
 }