From 1517f8043085d11a13814dcdca25eee3330854fc Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 11 Feb 2021 04:00:37 +0900 Subject: [PATCH] internal/uidriver/glfw: Refactoring --- internal/uidriver/glfw/ui.go | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index de8d9b33a..dc85c9a95 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -57,23 +57,26 @@ type UserInterface struct { lastDeviceScaleFactor float64 + // These values are not changed after initialized. + // TODO: the fullscreen size should be updated when the initial window position is changed? initMonitor *glfw.Monitor - initTitle string - initVsync bool initFullscreenWidthInDP int initFullscreenHeightInDP int - initFullscreen bool - initCursorMode driver.CursorMode - initWindowDecorated bool - initWindowResizable bool - initWindowPositionXInDP int - initWindowPositionYInDP int - initWindowWidthInDP int - initWindowHeightInDP int - initWindowFloating bool - initWindowMaximized bool - initScreenTransparent bool - initFocused bool + + initTitle string + initVsync bool + initFullscreen bool + initCursorMode driver.CursorMode + initWindowDecorated bool + initWindowResizable bool + initWindowPositionXInDP int + initWindowPositionYInDP int + initWindowWidthInDP int + initWindowHeightInDP int + initWindowFloating bool + initWindowMaximized bool + initScreenTransparent bool + initFocused bool vsyncInited bool