Skip to content

Commit

Permalink
giu: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Dec 27, 2024
1 parent 394652e commit 8f65225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ func (w *MasterWindow) SetSize(x, y int) {
// Mac OS X: Selecting Quit from the application menu will trigger the close
// callback for all windows.
func (w *MasterWindow) SetCloseCallback(cb func() bool) {
w.backend.SetCloseCallback(func(b backend.Backend[glfwbackend.GLFWWindowFlags]) {
b.SetShouldClose(cb())
w.backend.SetCloseCallback(func() {
w.backend.SetShouldClose(cb())
})
}

Expand Down

0 comments on commit 8f65225

Please sign in to comment.