From 3fedc2fac48d130300b028ff60bdd50996abe765 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Tue, 8 Nov 2022 00:32:30 -0600 Subject: [PATCH] Fix having an extra bracket (#243) --- src/raygui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 402cb66..b8e2bee 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -3284,8 +3284,8 @@ Vector2 GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs) if (CheckCollisionPointRec(mousePoint, bounds)) { // NOTE: Cell values must be the upper left of the cell the mouse is in - currentCell.x = floorf((mousePoint.x - bounds.x)/spacing)); - currentCell.y = floorf((mousePoint.y - bounds.y)/spacing)); + currentCell.x = floorf((mousePoint.x - bounds.x)/spacing); + currentCell.y = floorf((mousePoint.y - bounds.y)/spacing); } } //--------------------------------------------------------------------