From 302f1146da5b179e5016e2d523e891437c1a256b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 23 Apr 2007 09:26:32 -0700 Subject: [PATCH] Fix two bugs in documentation code sample of cairo_arc The sample code for drawing an ellipse had width and height reversed in the call to cairo_scale, and also had both incorrectly inverted. --- src/cairo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo.c b/src/cairo.c index abcdaff1a..621dea809 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -1545,7 +1545,7 @@ slim_hidden_def (cairo_curve_to); * * cairo_save (cr); * cairo_translate (cr, x + width / 2., y + height / 2.); - * cairo_scale (cr, 1. / (height / 2.), 1. / (width / 2.)); + * cairo_scale (cr, width / 2., height / 2.); * cairo_arc (cr, 0., 0., 1., 0., 2 * M_PI); * cairo_restore (cr); *