mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
uidriver/glfw: Refactoring
This commit is contained in:
parent
33fd7c935a
commit
974ec525fa
@ -793,8 +793,7 @@ func (u *UserInterface) updateSize() (float64, float64, bool) {
|
||||
|
||||
// update must be called from the main thread.
|
||||
func (u *UserInterface) update() (float64, float64, bool, error) {
|
||||
shouldClose := u.window.ShouldClose()
|
||||
if shouldClose {
|
||||
if u.window.ShouldClose() {
|
||||
return 0, 0, false, driver.RegularTermination
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user