mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
parent
0bcee31a6f
commit
91abfe2c10
@ -123,7 +123,7 @@ func (u *userInterfaceImpl) adjustWindowPosition(x, y int, monitor *Monitor) (in
|
||||
|
||||
func initialMonitorByOS() (*Monitor, error) {
|
||||
if microsoftgdk.IsXbox() {
|
||||
return theMonitors.monitorFromGLFWMonitor(glfw.GetPrimaryMonitor()), nil
|
||||
return theMonitors.primaryMonitor(), nil
|
||||
}
|
||||
|
||||
px, py, err := _GetCursorPos()
|
||||
@ -148,7 +148,7 @@ func initialMonitorByOS() (*Monitor, error) {
|
||||
|
||||
func monitorFromWindowByOS(w *glfw.Window) *Monitor {
|
||||
if microsoftgdk.IsXbox() {
|
||||
return theMonitors.monitorFromGLFWMonitor(glfw.GetPrimaryMonitor())
|
||||
return theMonitors.primaryMonitor()
|
||||
}
|
||||
return monitorFromWin32Window(windows.HWND(w.GetWin32Window()))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user