mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-05 23:44:31 +01:00
parent
29b41fd07f
commit
e488486d97
@ -170,7 +170,10 @@ func (u *userInterfaceImpl) adjustWindowPosition(x, y int, monitor *glfw.Monitor
|
|||||||
|
|
||||||
func initialMonitorByOS() (*glfw.Monitor, error) {
|
func initialMonitorByOS() (*glfw.Monitor, error) {
|
||||||
px, py, err := getCursorPos()
|
px, py, err := getCursorPos()
|
||||||
if err != nil && !errors.Is(err, windows.ERROR_ACCESS_DENIED) {
|
if err != nil {
|
||||||
|
if errors.Is(err, windows.ERROR_ACCESS_DENIED) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
x, y := int(px), int(py)
|
x, y := int(px), int(py)
|
||||||
|
Loading…
Reference in New Issue
Block a user