example,cmd: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-23 19:54:27 +02:00
parent 2451750782
commit d8000880c3
13 changed files with 236 additions and 216 deletions
+3 -2
View File
@@ -20,6 +20,7 @@ import (
"gioui.org/io/key"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/op"
"gioui.org/unit"
"github.com/google/go-github/v24/github"
@@ -77,7 +78,7 @@ func initProfiling() {
func (a *App) run() error {
a.ui.profiling = *stats
gtx := new(layout.Context)
var ops op.Ops
for {
select {
case users := <-a.updateUsers:
@@ -125,7 +126,7 @@ func (a *App) run() error {
}
}
case system.FrameEvent:
gtx.Reset(e.Queue, e.Config, e.Size)
gtx := layout.NewContext(&ops, e.Queue, e.Config, e.Size)
a.ui.Layout(gtx)
e.Frame(gtx.Ops)
}