summaryrefslogtreecommitdiff
path: root/src/cairo-misc.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-09-18 00:26:07 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-09-18 00:26:07 -0400
commit1fe7088a113f8a9cb40d436f10af4967662cd02a (patch)
treec4174320064ac9c9e3b77ce5ae6db93106f98c29 /src/cairo-misc.c
parenta8cd426a4c79a7165b312f550ecc6a87b61303a3 (diff)
[show_text_glyphs] Replace the bool backward with cairo_text_cluster_flags
Chris rightfully complained that having a boolean function argument is new in cairo_show_text_glyphs, and indeed avoiding them has been one of the API design criteria for cairo. Trying to come up with alternatives, Owen suggested using a flag type which nicely solves the problem AND future-proofs such a complex API. Please welcome _flags_t APIs to cairo.h
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r--src/cairo-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index b927c941..27050a24 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -240,7 +240,7 @@ slim_hidden_def (cairo_text_cluster_free);
* @num_glyphs: number of glyphs
* @clusters: array of cluster mapping information
* @num_clusters: number of clusters in the mapping
- * @backward: whether the text to glyphs mapping goes backward
+ * @cluster_flags: cluster flags
*
* Check that clusters cover the entire glyphs and utf8 arrays,
* and that cluster boundaries are UTF-8 boundaries.
@@ -257,7 +257,7 @@ _cairo_validate_text_clusters (const char *utf8,
int num_glyphs,
const cairo_text_cluster_t *clusters,
int num_clusters,
- cairo_bool_t backward)
+ cairo_text_cluster_flags_t cluster_flags)
{
cairo_status_t status;
unsigned int n_bytes = 0;