mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/ui: remove unnecessary swapBuffer call
This was introduced at 9e161864f6
, the
background is now unclear. Things work even without this hack.
Updates #157
Updates #158
This commit is contained in:
parent
42c08698fb
commit
b597ed1e27
@ -1184,10 +1184,6 @@ func (u *userInterfaceImpl) setWindowSizeInDIP(width, height int, callSetSize bo
|
|||||||
u.origWindowWidthInDIP = width
|
u.origWindowWidthInDIP = width
|
||||||
u.origWindowHeightInDIP = height
|
u.origWindowHeightInDIP = height
|
||||||
|
|
||||||
// To make sure the current existing framebuffers are rendered,
|
|
||||||
// swap buffers here before SetSize is called.
|
|
||||||
u.swapBuffers()
|
|
||||||
|
|
||||||
if !u.isFullscreen() && callSetSize {
|
if !u.isFullscreen() && callSetSize {
|
||||||
// Set the window size after the position. The order matters.
|
// Set the window size after the position. The order matters.
|
||||||
// In the opposite order, the window size might not be correct when going back from fullscreen with multi monitors.
|
// In the opposite order, the window size might not be correct when going back from fullscreen with multi monitors.
|
||||||
|
Loading…
Reference in New Issue
Block a user