REVERTED: GuiGrid()
cell compute, returning value was not right
It was validated on `rGuiIcons()`, returned value was not correct
This commit is contained in:
parent
03a3cce57b
commit
c16a98365f
@ -3284,8 +3284,8 @@ Vector2 GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs)
|
||||
if (CheckCollisionPointRec(mousePoint, bounds))
|
||||
{
|
||||
// NOTE: Cell values must be rounded to int
|
||||
currentCell.x = roundf((mousePoint.x - bounds.x)/spacing);
|
||||
currentCell.y = roundf((mousePoint.y - bounds.y)/spacing);
|
||||
currentCell.x = (float)((int)((mousePoint.x - bounds.x)/spacing));
|
||||
currentCell.y = (float)((int)((mousePoint.y - bounds.y)/spacing));
|
||||
}
|
||||
}
|
||||
//--------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user