mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
apps: update gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -127,7 +127,7 @@ func (a *App) run() error {
|
||||
}
|
||||
}
|
||||
case app.UpdateEvent:
|
||||
gtx.Reset(&e.Config, layout.RigidConstraints(e.Size))
|
||||
gtx.Reset(&e.Config, e.Size)
|
||||
a.ui.Layout(gtx)
|
||||
a.w.Update(gtx.Ops)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ func BenchmarkUI(b *testing.B) {
|
||||
Queue: new(queue),
|
||||
}
|
||||
for i := 0; i < b.N; i++ {
|
||||
gtx.Reset(cfg, layout.RigidConstraints(image.Point{800, 600}))
|
||||
gtx.Reset(cfg, image.Point{800, 600})
|
||||
u.Layout(gtx)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user