From 411721a4da7bba6692e24c1d290bce02886fe4ae Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 26 Nov 2016 02:35:55 +0900 Subject: [PATCH] ui: Add TODO --- internal/ui/ui_glfw.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 0f520b902..4996c0717 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -322,6 +322,7 @@ func (u *userInterface) setScreenSize(width, height int, scale float64) (bool, e // On Windows, giving a too small width doesn't call a callback (#165). // To prevent hanging up, return asap if the width is too small. // 252 is an arbitrary number and I guess this is small enough. + // TODO: The same check should be in ui_js.go const minWindowWidth = 252 if int(float64(width)*u.actualScreenScale()) < minWindowWidth { u.scale = origScale