From 2157061479bc335547c6c3238ffcc797c8b8f3d7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 22 Mar 2016 12:01:53 +0900 Subject: [PATCH] ui: Use actualScale to calc minimum window size --- internal/ui/ui_glfw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 8277e035f..5a2764c12 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -201,7 +201,7 @@ func (u *userInterface) setScreenSize(width, height, scale int) bool { // To prevent hanging up, return asap if the width is too small. // 252 is an arbitrary number and I guess this is small enough. const minWindowWidth = 252 - if width*u.windowScale() < minWindowWidth { + if width*u.actualScale() < minWindowWidth { u.scale = origScale return false }