apps: use DrawEvent.Size instead of Window.Size

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-14 13:10:42 +02:00
parent 6e97d65af1
commit 26543ba1a5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func loop(w *app.Window) error {
return e.Err
case app.DrawEvent:
cfg = e.Config
cs := layout.ExactConstraints(w.Size())
cs := layout.ExactConstraints(e.Size)
ops.Reset()
ops.Begin()
draw.ColorOp{Color: maroon}.Add(ops)