Skip to content

Commit

Permalink
internal/ui: remove an old comment
Browse files Browse the repository at this point in the history
Now Ebitengine allows to specify the initial monitor, having an
initial monitor is no longer a hack.

Updates #1575
Updates #1835
  • Loading branch information
hajimehoshi committed Sep 24, 2023
1 parent b5d0dc3 commit 4fb27ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/ui/ui_glfw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4fb27ad

Please sign in to comment.