ui: Bug fix: currentMonitor should not return nil

Fixes #700
This commit is contained in:
Hajime Hoshi 2018-10-06 03:22:31 +09:00
parent cae9e39453
commit 7ea1ab6b58

View File

@ -773,7 +773,7 @@ func (u *userInterface) currentMonitor() *glfw.Monitor {
ww, wh := w.GetSize()
wr := image.Rect(wx, wy, wx+ww, wy+wh)
best := 0
best := -1
var current *glfw.Monitor
for _, m := range glfw.GetMonitors() {
mx, my := m.GetPos()