ui: Refactoring

This commit is contained in:
Hajime Hoshi 2016-02-22 01:30:33 +09:00
parent 0a07d8531b
commit 18a798f85c

View File

@ -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