example,cmd: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-03 21:06:02 +02:00
parent 8d9612f9aa
commit a1166e6652
11 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ func initProfiling() {
func (a *App) run() error {
a.ui.profiling = *stats
gtx := layout.NewContext(a.w.Queue())
gtx := new(layout.Context)
for {
select {
case users := <-a.updateUsers:
@@ -125,7 +125,7 @@ func (a *App) run() error {
}
}
case system.FrameEvent:
gtx.Reset(e.Config, e.Size)
gtx.Reset(e.Queue, e.Config, e.Size)
a.ui.Layout(gtx)
e.Frame(gtx.Ops)
}
+1 -1
View File
@@ -14,7 +14,7 @@ func BenchmarkUI(b *testing.B) {
u := newUI(fetch)
gtx := new(layout.Context)
for i := 0; i < b.N; i++ {
gtx.Reset(nil, image.Point{800, 600})
gtx.Reset(nil, nil, image.Point{800, 600})
u.Layout(gtx)
}
}