mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
ui: Bug fix: Quit soon after the window is closed (#185)
This commit is contained in:
parent
1bb8a8b4bf
commit
8f15978c83
@ -159,6 +159,9 @@ func (u *userInterface) doEvents() error {
|
|||||||
if err := u.pollEvents(); err != nil {
|
if err := u.pollEvents(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if u.isClosed() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user