mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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)
|
m := initialMonitor(w)
|
||||||
theUI.initMonitor = m
|
theUI.initMonitor = m
|
||||||
|
// GetVideoMode must be called from the main thread, then call this here and record
|
||||||
|
// initFullscreen{Width,Height}InDIP.
|
||||||
v := m.GetVideoMode()
|
v := m.GetVideoMode()
|
||||||
theUI.initFullscreenWidthInDIP = int(theUI.dipFromGLFWMonitorPixel(float64(v.Width), m))
|
theUI.initFullscreenWidthInDIP = int(theUI.dipFromGLFWMonitorPixel(float64(v.Width), m))
|
||||||
theUI.initFullscreenHeightInDIP = int(theUI.dipFromGLFWMonitorPixel(float64(v.Height), m))
|
theUI.initFullscreenHeightInDIP = int(theUI.dipFromGLFWMonitorPixel(float64(v.Height), m))
|
||||||
|
Loading…
Reference in New Issue
Block a user