ungerik / go-cairo

Go binding for the cairo graphics library
Other
146 stars 33 forks source link

Fix example #2

Closed gkelly closed 11 years ago

gkelly commented 12 years ago

The example/draw.go has two problems. The first, as outlined in another pull request, is the use of incorrect constants. The second problem is that it attempts to finish a surface before writing it out to a PNG. This is an invalid sequence of operations.

This patch fixes both of those issues.