Corrected const names in example/draw.go #1

Merged
merged 1 commit into from Dec 2, 2012
+2 −2
View
4 example/draw.go
@@ -25,8 +25,8 @@ cairo_surface_t *surface =
*/
func main() {
- surface := cairo.NewSurface(cairo.FormatArgB32, 240, 80)
- surface.SelectFontFace("serif", cairo.FontSlantNormal, cairo.FontWeightBold)
+ surface := cairo.NewSurface(cairo.FORMAT_ARGB32, 240, 80)
+ surface.SelectFontFace("serif", cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_BOLD)
surface.SetFontSize(32.0)
surface.SetSourceRGB(0.0, 0.0, 1.0)
surface.MoveTo(10.0, 50.0)