mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Fixed not needed calculation in test program.
This commit is contained in:
parent
38549a7bba
commit
eab076a7ee
@ -39,7 +39,7 @@ DrawChessBoard(SDL_Renderer * renderer)
|
|||||||
for( ; row < 8; row++)
|
for( ; row < 8; row++)
|
||||||
{
|
{
|
||||||
column = row%2;
|
column = row%2;
|
||||||
x = x + column;
|
x = column;
|
||||||
for( ; column < 4+(row%2); column++)
|
for( ; column < 4+(row%2); column++)
|
||||||
{
|
{
|
||||||
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
|
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
|
||||||
@ -51,7 +51,6 @@ DrawChessBoard(SDL_Renderer * renderer)
|
|||||||
x = x + 2;
|
x = x + 2;
|
||||||
SDL_RenderFillRect(renderer, &rect);
|
SDL_RenderFillRect(renderer, &rect);
|
||||||
}
|
}
|
||||||
x=0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user