Skip to content

Commit

Permalink
Merge pull request #330 from Fluffy-Bean/master
Browse files Browse the repository at this point in the history
Fix Grid mouseCell not updaing value
  • Loading branch information
gen2brain authored Dec 25, 2023
2 parents ac28b4b + cf285a2 commit 6c3c388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions raygui/raygui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 6c3c388

Please sign in to comment.