diff --git a/internal/ui/ui_mobile.go b/internal/ui/ui_mobile.go index c2c278d4e..78e4156e7 100644 --- a/internal/ui/ui_mobile.go +++ b/internal/ui/ui_mobile.go @@ -141,6 +141,8 @@ func Run(width, height int, scale float64, title string, g GraphicsContext, main opengl.Init() } + // Force to set the screen size + u.updateGraphicsContext(g) for { if err := u.update(g); err != nil { return err @@ -205,8 +207,6 @@ func (u *userInterface) update(g GraphicsContext) error { renderChEnd <- struct{}{} }() - u.updateGraphicsContext(g) - if err := g.Update(func() { u.updateGraphicsContext(g) }); err != nil {