mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
ui: Refactoring
This commit is contained in:
parent
0a07d8531b
commit
18a798f85c
@ -165,17 +165,14 @@ func (u *userInterface) setScreenSize(width, height, scale int) bool {
|
||||
})
|
||||
window.SetSize(width*scale, height*scale)
|
||||
|
||||
event:
|
||||
for {
|
||||
done := false
|
||||
glfw.PollEvents()
|
||||
select {
|
||||
case <-ch:
|
||||
done = true
|
||||
break event
|
||||
default:
|
||||
}
|
||||
if done {
|
||||
break
|
||||
}
|
||||
}
|
||||
u.width = width
|
||||
u.height = height
|
||||
|
Loading…
Reference in New Issue
Block a user