mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
uidriver/glfw: Bug fix: Crash on Wine when getting a monitor
This commit is contained in:
parent
77fa0cb9ef
commit
10d6a3ad67
@ -145,7 +145,8 @@ func (u *UserInterface) currentMonitorFromPosition() *glfw.Monitor {
|
|||||||
|
|
||||||
m, err := monitorFromWindow(w, monitorDefaultToNearest)
|
m, err := monitorFromWindow(w, monitorDefaultToNearest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
// monitorFromWindow can return error on Wine. Ignore this.
|
||||||
|
return glfw.GetPrimaryMonitor()
|
||||||
}
|
}
|
||||||
|
|
||||||
mi := monitorInfo{}
|
mi := monitorInfo{}
|
||||||
|
Loading…
Reference in New Issue
Block a user