mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Revert "internal/uidriver/glfw: Bug fix: Delay to enable SetSize callback"
This reverts commit fbe6961528
.
Reason: This doesn't fix the issue unfortunately
This commit is contained in:
parent
fbe6961528
commit
ec5b806241
@ -814,6 +814,7 @@ func (u *UserInterface) init() error {
|
||||
if err := u.createWindow(); err != nil {
|
||||
return err
|
||||
}
|
||||
u.setSizeCallbackEnabled = true
|
||||
|
||||
setSize := func() {
|
||||
ww, wh := u.getInitWindowSize()
|
||||
@ -848,10 +849,6 @@ func (u *UserInterface) init() error {
|
||||
g.SetWindow(u.nativeWindow())
|
||||
}
|
||||
|
||||
// Enable the SetSize callback after all the initialization finishes. Or, unexpected the callback
|
||||
// is fired unexpectedly at the initial phase with a very small size on Linux.
|
||||
u.setSizeCallbackEnabled = true
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user