summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-20 19:40:19 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-20 19:40:19 +0000
commit919d3089dae2e2ad011c9b94b4847c30b536ac63 (patch)
tree25d71b3e0890594e7d41b4ab00c735e9d1b6e4c0 /examples
parent145d6710e7d808fb6ef9925b82176e8703b1fe5d (diff)
downloadpango-919d3089dae2e2ad011c9b94b4847c30b536ac63.tar.gz
Change the --rotate parameter to double now that we depend on a
2006-08-20 Behdad Esfahbod <behdad@gnome.org> * examples/renderdemo.c (parse_options): * examples/renderdemo.h: Change the --rotate parameter to double now that we depend on a recent-enough glib.
Diffstat (limited to 'examples')
-rw-r--r--examples/renderdemo.c4
-rw-r--r--examples/renderdemo.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 2bf6ce29..0d989064 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -48,7 +48,7 @@ const char *opt_output = NULL;
int opt_margin = 10;
int opt_markup = FALSE;
gboolean opt_rtl = FALSE;
-int opt_rotate = 0;
+double opt_rotate = 0;
gboolean opt_auto_dir = TRUE;
const char *opt_text = NULL;
gboolean opt_waterfall = FALSE;
@@ -601,7 +601,7 @@ parse_options (int argc, char *argv[])
"pangorc file to use (default is ./pangorc)", "file"},
{"rtl", 0, 0, G_OPTION_ARG_NONE, &opt_rtl,
"Set base direction to right-to-left", NULL},
- {"rotate", 0, 0, G_OPTION_ARG_INT, &opt_rotate,
+ {"rotate", 0, 0, G_OPTION_ARG_DOUBLE, &opt_rotate,
"Angle at which to rotate results", "degrees"},
{"runs", 'n', 0, G_OPTION_ARG_INT, &opt_runs,
"Run Pango layout engine this many times", "integer"},
diff --git a/examples/renderdemo.h b/examples/renderdemo.h
index c7d0b49f..c9d10361 100644
--- a/examples/renderdemo.h
+++ b/examples/renderdemo.h
@@ -64,7 +64,7 @@ extern gboolean opt_header;
extern int opt_margin;
extern int opt_markup;
extern gboolean opt_rtl;
-extern int opt_rotate;
+extern double opt_rotate;
extern gboolean opt_auto_dir;
extern const char *opt_text;
extern gboolean opt_waterfall;