From 92213082f9b31152896a4404ee98c7728ab229d5 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Fri, 31 Jul 2015 11:01:05 -0400 Subject: [PATCH] app: update EndPaint in test and documentation Change-Id: I7c9e6edc2d50dca3c2d15426370d218d0c4dfe09 Reviewed-on: https://go-review.googlesource.com/13021 Reviewed-by: Hyang-Ah Hana Kim --- app/doc.go | 2 +- app/internal/testapp/testapp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) }