Fix cells y coordinates

This commit is contained in:
Amine B. Hassouna
2018-12-01 10:49:23 +01:00
parent 93b2fab53e
commit f52651631b

View File

@@ -99,7 +99,7 @@ void Grid_initCell(Grid *grid, Cell *cell, int i, int j, SDL_Color color, SDL_Co
cell->rect.h = (grid->rect.h - interspaceHeigth) / grid->yCells;
cell->rect.x = grid->rect.x + grid->xInterspace * (i+1.5) + cell->rect.w * i;
cell->rect.y = grid->rect.y + grid->xInterspace * (j+1.5) + cell->rect.h * j;
cell->rect.y = grid->rect.y + grid->yInterspace * (j+1.5) + cell->rect.h * j;
// Init rectColor
cell->rectColor = color;