diff --git a/app/doc.go b/app/doc.go index 25a7560..9bea908 100644 --- a/app/doc.go +++ b/app/doc.go @@ -57,7 +57,7 @@ goroutine as other code that calls OpenGL. // ... case paint.Event: log.Print("Call OpenGL here.") - a.EndPaint() + a.EndPaint(e) } } }) diff --git a/app/internal/testapp/testapp.go b/app/internal/testapp/testapp.go index c4d868e..4904d72 100644 --- a/app/internal/testapp/testapp.go +++ b/app/internal/testapp/testapp.go @@ -59,7 +59,7 @@ func main() { comm.Send("paint") sendPainting = false } - a.EndPaint() + a.EndPaint(e) case touch.Event: comm.Send("touch", e.Type, e.Loc.X.Px(c.PixelsPerPt), e.Loc.Y.Px(c.PixelsPerPt)) }