diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 333f5de60..0e074091e 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -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