mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
uidriver/glfw: Bug fix: compile error on Linux
This commit is contained in:
parent
8cca713d74
commit
3e244d7a7c
@ -34,7 +34,7 @@ func (u *UserInterface) adjustWindowPosition(x, y int) (int, int) {
|
||||
|
||||
func (u *UserInterface) currentMonitorFromPosition() *glfw.Monitor {
|
||||
// TODO: Return more appropriate display.
|
||||
if cm, ok := getCachedMonitor(u.window.GetPos()); ok {
|
||||
if cm, ok := getCachedMonitor(u.window.GetMonitor()); ok {
|
||||
return cm.m
|
||||
}
|
||||
return glfw.GetPrimaryMonitor()
|
||||
|
Loading…
Reference in New Issue
Block a user