mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 21:28:02 +02:00
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:
parent
e37c9edac0
commit
302f1146da
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue