mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58: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)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
// monitorFromWindow can return error on Wine. Ignore this.
|
||||
return glfw.GetPrimaryMonitor()
|
||||
}
|
||||
|
||||
mi := monitorInfo{}
|
||||
|
Loading…
Reference in New Issue
Block a user