apps/gophers: update to latest gio

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-07 20:38:16 +02:00
parent 4e005f2bfa
commit aa703dfc3e
4 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ func loop(w *app.Window) error {
switch e := e.(type) {
case app.DestroyEvent:
return e.Err
case app.DrawEvent:
case app.UpdateEvent:
cfg = e.Config
faces.Reset(&cfg)
cs := layout.RigidConstraints(e.Size)
@@ -55,7 +55,7 @@ func loop(w *app.Window) error {
paint.ColorOp{Color: maroon}.Add(ops)
material.Stop()
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
w.Draw(ops)
w.Update(ops)
}
}
}