From f52651631b6759d90a560b90d091af3019278064 Mon Sep 17 00:00:00 2001 From: "Amine B. Hassouna" Date: Sat, 1 Dec 2018 10:49:23 +0100 Subject: [PATCH] Fix cells y coordinates --- src/grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grid.c b/src/grid.c index 532450a..17b4a63 100644 --- a/src/grid.c +++ b/src/grid.c @@ -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;