diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/renderdemo.c | 4 | ||||
-rw-r--r-- | examples/renderdemo.h | 2 |
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; |