mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/ui: remove an old comment
Now Ebitengine allows to specify the initial monitor, having an initial monitor is no longer a hack. Updates #1575 Updates #1835
This commit is contained in:
parent
b5d0dc3686
commit
4fb27adb9d
@ -784,11 +784,10 @@ func (u *userInterfaceImpl) createWindow() error {
|
||||
u.window = window
|
||||
|
||||
// The position must be set before the size is set (#1982).
|
||||
// setWindowSize refers the current monitor's device scale.
|
||||
// setWindowSizeInDIP refers the current monitor's device scale.
|
||||
wx, wy := u.getInitWindowPositionInDIP()
|
||||
mw := int(u.dipFromGLFWMonitorPixel(float64(monitor.videoMode.Width), monitor))
|
||||
mh := int(u.dipFromGLFWMonitorPixel(float64(monitor.videoMode.Height), monitor))
|
||||
// Force to put the window in the initial monitor (#1575).
|
||||
if max := mw - ww; wx >= max {
|
||||
wx = max
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user