internal/ui: add a comment

This commit is contained in:
Hajime Hoshi 2022-02-07 00:51:48 +09:00
parent b78160262c
commit 126dc81a96

View File

@ -185,6 +185,8 @@ func initialize() error {
m := initialMonitor(w)
theUI.initMonitor = m
// GetVideoMode must be called from the main thread, then call this here and record
// initFullscreen{Width,Height}InDIP.
v := m.GetVideoMode()
theUI.initFullscreenWidthInDIP = int(theUI.dipFromGLFWMonitorPixel(float64(v.Width), m))
theUI.initFullscreenHeightInDIP = int(theUI.dipFromGLFWMonitorPixel(float64(v.Height), m))