mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
parent
47c65a92ae
commit
08ebab0558
@ -182,7 +182,10 @@ 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