apps: upgrade to the block to macro rename

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-15 20:39:15 +02:00
parent 3b5fcfe2bb
commit 5b7b1eb001
3 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -54,9 +54,9 @@ func loop(w *app.Window) error {
cfg = e.Config
cs := layout.RigidConstraints(e.Size)
ops.Reset()
ops.Begin()
ops.Record()
draw.ColorOp{Color: maroon}.Add(ops)
material := ops.End()
material := ops.Stop()
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
w.Draw(ops)
faces.Frame()