mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
app: rename EndDraw to EndPaint.
Change-Id: I3e38df0e21be2246dd16886fa00c9360d42db145 Reviewed-on: https://go-review.googlesource.com/12282 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
@@ -70,8 +70,8 @@ func main() {
|
||||
c = e
|
||||
touchLoc = geom.Point{c.Width / 2, c.Height / 2}
|
||||
case paint.Event:
|
||||
onDraw(c)
|
||||
a.EndDraw()
|
||||
onPaint(c)
|
||||
a.EndPaint()
|
||||
case touch.Event:
|
||||
touchLoc = e.Loc
|
||||
}
|
||||
@@ -104,7 +104,7 @@ func onStop() {
|
||||
gl.DeleteBuffer(buf)
|
||||
}
|
||||
|
||||
func onDraw(c config.Event) {
|
||||
func onPaint(c config.Event) {
|
||||
gl.ClearColor(1, 0, 0, 1)
|
||||
gl.Clear(gl.COLOR_BUFFER_BIT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user