From 14200eb42c94b1530daac505c9d0889cdfef7ed5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 29 Mar 2020 00:02:33 +0900 Subject: [PATCH] uidriver/glfw: Add comments --- internal/uidriver/glfw/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 60ec754d8..221cd6fd9 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -1018,7 +1018,7 @@ func (u *UserInterface) setWindowSize(width, height int, fullscreen bool, vsync // currentMonitor must be called on the main thread. func (u *UserInterface) currentMonitor() *glfw.Monitor { if w := u.window; w != nil { - // TODO: When is the monitor nil? + // GetMonitor is available only on fullscreen. if m := w.GetMonitor(); m != nil { return m }