Fix example #2

merged 1 commit into from Dec 2, 2012


None yet
2 participants

gkelly commented Nov 14, 2012

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.

ungerik added a commit that referenced this pull request Dec 2, 2012

@ungerik ungerik merged commit 2163f51 into ungerik:master Dec 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment