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)
event:
for {
done := false
glfw.PollEvents()
select {
case <-ch:
done = true
break event
default:
}
if done {
break
}
}
u.width = width
u.height = height