From d07028735f0c75fd9260a60616242cdb34ceda23 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 21 Dec 2019 19:52:07 +0900 Subject: [PATCH] uidriver/glfw: Refactoring --- internal/uidriver/glfw/ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 97ba6140f..8401f701f 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -129,9 +129,9 @@ func initialize() error { panic("glfw: glfw.CreateWindow must not return nil") } - // TODO: Fix this hack. currentMonitorImpl now requires u.window on POSIX. + // TODO: Fix this hack. currentMonitor now requires u.window on POSIX. theUI.window = w - theUI.initMonitor = theUI.currentMonitorFromPosition() + theUI.initMonitor = theUI.currentMonitor() v := theUI.initMonitor.GetVideoMode() theUI.initFullscreenWidthInDP = int(theUI.toDeviceIndependentPixel(float64(v.Width))) theUI.initFullscreenHeightInDP = int(theUI.toDeviceIndependentPixel(float64(v.Height)))