summaryrefslogtreecommitdiff
path: root/examples/renderdemo.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2005-11-03 20:37:42 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-11-03 20:37:42 +0000
commit0fead16e7533b63b0e6af2e55ccfe31056921085 (patch)
treeaf975e4164f950a8d114252da865d1bf50389aa5 /examples/renderdemo.c
parent7b4862a001ed620ec4e1d24b6c1161b5da878802 (diff)
downloadpango-0fead16e7533b63b0e6af2e55ccfe31056921085.tar.gz
Added a --runs options, useful for profiling. Misc cleanup, freeing
2005-11-03 Behdad Esfahbod <behdad@gnome.org> * examples/pangoft2pgm.c, renderdemo.c, renderdemo.h: Added a --runs options, useful for profiling. Misc cleanup, freeing memory. (from #170414)
Diffstat (limited to 'examples/renderdemo.c')
-rw-r--r--examples/renderdemo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index de324d79..a1225121 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -54,6 +54,7 @@ char *opt_text = NULL;
gboolean opt_waterfall = FALSE;
int opt_width = -1;
int opt_indent = 0;
+int opt_runs = 1;
PangoEllipsizeMode opt_ellipsize = PANGO_ELLIPSIZE_NONE;
HintMode opt_hinting = HINT_DEFAULT;
@@ -411,6 +412,8 @@ parse_options (int argc, char *argv[])
ARG_INT, &opt_width },
{ "indent", "Width in points to indent paragraphs",
ARG_INT, &opt_indent },
+ { "runs", "Render text this many times",
+ ARG_INT, &opt_runs },
{ NULL }
};