Fix to the curveTo example. Thanks to abtv & MannyC.

Signed-off-by: Grant Skinner <info@gskinner.com>