From cf285a20a18794619cd0a8b66e9ceb75423753bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Tue, 19 Dec 2023 14:38:36 +0000 Subject: [PATCH] Fix mouseCell pointer not updaing value --- raygui/raygui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/raygui/raygui.go b/raygui/raygui.go index f2b40e8..1a3f8ef 100644 --- a/raygui/raygui.go +++ b/raygui/raygui.go @@ -621,6 +621,8 @@ func Grid(bounds rl.Rectangle, text string, spacing float32, subdivs int32, mous cmouseCell.x = C.float(mouseCell.X) cmouseCell.y = C.float(mouseCell.Y) res := C.GuiGrid(cbounds, ctext, cspacing, csubdivs, &cmouseCell) + mouseCell.X = float32(cmouseCell.x) + mouseCell.Y = float32(cmouseCell.y) return int32(res) }