mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
parent
47c65a92ae
commit
08ebab0558
@ -182,7 +182,10 @@ func initialMonitorByOS() (*glfw.Monitor, error) {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
x, y := int(px), int(py)
|
||||
|
Loading…
Reference in New Issue
Block a user