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)
|
window.SetSize(width*scale, height*scale)
|
||||||
|
|
||||||
|
event:
|
||||||
for {
|
for {
|
||||||
done := false
|
|
||||||
glfw.PollEvents()
|
glfw.PollEvents()
|
||||||
select {
|
select {
|
||||||
case <-ch:
|
case <-ch:
|
||||||
done = true
|
break event
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
if done {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
u.width = width
|
u.width = width
|
||||||
u.height = height
|
u.height = height
|
||||||
|
Loading…
Reference in New Issue
Block a user