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.
This commit is contained in:
Carl Worth 2007-04-23 09:26:32 -07:00
parent e37c9edac0
commit 302f1146da

View file

@ -1545,7 +1545,7 @@ slim_hidden_def (cairo_curve_to);
* <informalexample><programlisting>
* 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);
* </programlisting></informalexample>