mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 03:00:24 +01:00
scaled-font: Fix documentation examples with incorrect derefs
Bug 24730 -- New: misleading use cases in cairo_scaled_font_text_to_glyphs's docs http://bugs.freedesktop.org/show_bug.cgi?id=24730 An apparent copy'n'paste error from the code which has to deal with indirect pointers crept into the documentation for the same functions.
This commit is contained in:
parent
f648fcd2f9
commit
1a80cd2aa0
1 changed files with 10 additions and 10 deletions
|
|
@ -1612,11 +1612,11 @@ slim_hidden_def (cairo_scaled_font_glyph_extents);
|
|||
* if (status == CAIRO_STATUS_SUCCESS) {
|
||||
* cairo_show_text_glyphs (cr,
|
||||
* utf8, utf8_len,
|
||||
* *glyphs, *num_glyphs,
|
||||
* *clusters, *num_clusters, *cluster_flags);
|
||||
* glyphs, num_glyphs,
|
||||
* clusters, num_clusters, cluster_flags);
|
||||
*
|
||||
* cairo_glyph_free (*glyphs);
|
||||
* cairo_text_cluster_free (*clusters);
|
||||
* cairo_glyph_free (glyphs);
|
||||
* cairo_text_cluster_free (clusters);
|
||||
* }
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
|
|
@ -1635,8 +1635,8 @@ slim_hidden_def (cairo_scaled_font_glyph_extents);
|
|||
* NULL);
|
||||
*
|
||||
* if (status == CAIRO_STATUS_SUCCESS) {
|
||||
* cairo_show_glyphs (cr, *glyphs, *num_glyphs);
|
||||
* cairo_glyph_free (*glyphs);
|
||||
* cairo_show_glyphs (cr, glyphs, num_glyphs);
|
||||
* cairo_glyph_free (glyphs);
|
||||
* }
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
|
|
@ -1662,13 +1662,13 @@ slim_hidden_def (cairo_scaled_font_glyph_extents);
|
|||
* if (status == CAIRO_STATUS_SUCCESS) {
|
||||
* cairo_show_text_glyphs (cr,
|
||||
* utf8, utf8_len,
|
||||
* *glyphs, *num_glyphs,
|
||||
* *clusters, *num_clusters, *cluster_flags);
|
||||
* glyphs, num_glyphs,
|
||||
* clusters, num_clusters, cluster_flags);
|
||||
*
|
||||
* if (glyphs != stack_glyphs)
|
||||
* cairo_glyph_free (*glyphs);
|
||||
* cairo_glyph_free (glyphs);
|
||||
* if (clusters != stack_clusters)
|
||||
* cairo_text_cluster_free (*clusters);
|
||||
* cairo_text_cluster_free (clusters);
|
||||
* }
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue