mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/ui: add a comment
This commit is contained in:
parent
b78160262c
commit
126dc81a96
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user