mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
parent
2008916261
commit
93b4c0d9b1
@ -201,6 +201,7 @@ func (w *Window) Size() (int, int) {
|
|||||||
}
|
}
|
||||||
ww, wh := 0, 0
|
ww, wh := 0, 0
|
||||||
w.ui.t.Call(func() {
|
w.ui.t.Call(func() {
|
||||||
|
// Unlike origWindowPos, windowWidth/HeightInDPI is always updated via the callback.
|
||||||
ww = w.ui.windowWidthInDIP
|
ww = w.ui.windowWidthInDIP
|
||||||
wh = w.ui.windowHeightInDIP
|
wh = w.ui.windowHeightInDIP
|
||||||
})
|
})
|
||||||
@ -215,6 +216,7 @@ func (w *Window) SetSize(width, height int) {
|
|||||||
w.ui.t.Call(func() {
|
w.ui.t.Call(func() {
|
||||||
// When a window is a native fullscreen, forcing to resize the window might leave unexpected image lags.
|
// When a window is a native fullscreen, forcing to resize the window might leave unexpected image lags.
|
||||||
// Forbid this.
|
// Forbid this.
|
||||||
|
// TODO: Remove this condition (#1590).
|
||||||
if w.ui.isNativeFullscreen() {
|
if w.ui.isNativeFullscreen() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user