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
@@ -53,7 +53,7 @@ func loop(w *app.Window) error {
color: color.RGBA{R: 0x00, G: 0x00, B: 0x00, A: 0x80},
}
gtx := layout.NewContext(w.Queue())
gtx := new(layout.Context)
for {
e := <-w.Events()
switch e := e.(type) {
@@ -61,7 +61,7 @@ func loop(w *app.Window) error {
return e.Err
case system.FrameEvent:
gtx.Reset(e.Config, e.Size)
gtx.Reset(e.Queue, e.Config, e.Size)
layout.Flex{Axis: layout.Vertical}.Layout(gtx,
layout.Flexed(0.5, func() {
layout.Flex{Axis: layout.Horizontal}.Layout(gtx,