mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
uidriver/glfw: Remove the dirty hack for GLFW 3.2
See also https://github.com/glfw/glfw/issues/1334. Updates #703
This commit is contained in:
parent
5153713469
commit
d1da5b4920
@ -995,12 +995,6 @@ func (u *UserInterface) forceSetScreenSize(width, height int, scale float64, ful
|
|||||||
x := u.origPosX
|
x := u.origPosX
|
||||||
y := u.origPosY
|
y := u.origPosY
|
||||||
u.window.SetPos(x, y)
|
u.window.SetPos(x, y)
|
||||||
// Dirty hack for macOS (#703). Rendering doesn't work correctly with one SetPos, but work
|
|
||||||
// with two or more SetPos.
|
|
||||||
if runtime.GOOS == "darwin" {
|
|
||||||
u.window.SetPos(x+1, y)
|
|
||||||
u.window.SetPos(x, y)
|
|
||||||
}
|
|
||||||
u.origPosX = invalidPos
|
u.origPosX = invalidPos
|
||||||
u.origPosY = invalidPos
|
u.origPosY = invalidPos
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user