Fixed typos in test program.

This commit is contained in:
Philipp Wiesemann 2014-08-20 22:51:56 +02:00
parent aaefa6a855
commit 96d23f6a8f
1 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
void void
DrawChessBoard(SDL_Renderer * renderer) DrawChessBoard(SDL_Renderer * renderer)
{ {
int row = 0,coloum = 0,x = 0; int row = 0,column = 0,x = 0;
SDL_Rect rect, darea; SDL_Rect rect, darea;
/* Get the Size of drawing surface */ /* Get the Size of drawing surface */
@ -27,9 +27,9 @@ DrawChessBoard(SDL_Renderer * renderer)
for( ; row < 8; row++) for( ; row < 8; row++)
{ {
coloum = row%2; column = row%2;
x = x + coloum; x = x + column;
for( ; coloum < 4+(row%2); coloum++) for( ; column < 4+(row%2); column++)
{ {
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF); SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);