mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/ui: bug fix: setWindowMonitor was processed even when the same monitor was specified
Updates #1835
This commit is contained in:
parent
b710ff17c8
commit
32bd565df9
@ -357,7 +357,7 @@ func (u *userInterfaceImpl) setWindowMonitor(monitor int) {
|
|||||||
m := monitors[monitor].m
|
m := monitors[monitor].m
|
||||||
|
|
||||||
// Ignore if it is the same monitor.
|
// Ignore if it is the same monitor.
|
||||||
if m == u.window.GetMonitor() {
|
if m == u.currentMonitor() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user