mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-05 07:24:30 +01:00
parent
53090f3105
commit
ec57d482f2
@ -118,10 +118,10 @@ func (u *UserInterface) adjustWindowPosition(x, y int, monitor *Monitor) (int, i
|
|||||||
// If a window is not decorated, the window should be able to reach the top of the screen (#3118).
|
// If a window is not decorated, the window should be able to reach the top of the screen (#3118).
|
||||||
d, err := u.window.GetAttrib(glfw.Decorated)
|
d, err := u.window.GetAttrib(glfw.Decorated)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, 0, err
|
panic(err)
|
||||||
}
|
}
|
||||||
if d == glfw.False {
|
if d == glfw.False {
|
||||||
return x, y, nil
|
return x, y
|
||||||
}
|
}
|
||||||
|
|
||||||
mx := monitor.boundsInGLFWPixels.Min.X
|
mx := monitor.boundsInGLFWPixels.Min.X
|
||||||
|
Loading…
Reference in New Issue
Block a user