Fix having an extra bracket (#243)

This commit is contained in:
Rob Loach 2022-11-08 00:32:30 -06:00 committed by GitHub
parent 59cf0c7607
commit 3fedc2fac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
//--------------------------------------------------------------------