From d0f086323bc6886e523dc921fc21ffea612559f4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 30 Jun 2017 00:37:24 +0900 Subject: [PATCH] ui: Use returning values --- internal/ui/ui_glfw.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 43452c164..6a8af34f5 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -129,7 +129,7 @@ func SetScreenSize(width, height int) bool { } r := false _ = u.runOnMainThread(func() error { - u.setScreenSize(width, height, u.scale) + r = u.setScreenSize(width, height, u.scale) return nil }) return r @@ -142,7 +142,7 @@ func SetScreenScale(scale float64) bool { } r := false _ = u.runOnMainThread(func() error { - u.setScreenSize(u.width, u.height, scale) + r = u.setScreenSize(u.width, u.height, scale) return nil }) return r