summaryrefslogtreecommitdiff
path: root/examples/renderdemo.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-25 04:05:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-25 04:05:27 +0000
commit0590ccf215b0df243825a1b5fd395926c781f66c (patch)
treeea6b2144782aa20d9552d5e815e6167354665837 /examples/renderdemo.c
parent8e6f34e2b82737b61645d43476602fc6ec59630e (diff)
downloadpango-0590ccf215b0df243825a1b5fd395926c781f66c.tar.gz
Remove this file; pangofttopgm is the test case for the FT2 backend now.
Wed Jan 23 16:49:24 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-ft2.c: Remove this file; pangofttopgm is the test case for the FT2 backend now. * examples/Makefile.am: Don't dist moc_viewer-qt.cc. * examples/Makefile.am: Build pangofttopgm if we have FT2. * examples/pangoft2topgm.c (main): Warning fixes.
Diffstat (limited to 'examples/renderdemo.c')
-rw-r--r--examples/renderdemo.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index fe849060..db5c0c3c 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -47,8 +47,6 @@ struct _Paragraph {
GList *paragraphs;
static PangoFontDescription *font_description;
-static Paragraph *highlight_para;
-static int highlight_offset;
PangoContext *context;
@@ -143,8 +141,8 @@ int main(int argc, char *argv[])
char *text;
int y_start = 0, x_start = 0;
int paint_width = 500;
- int paint_height = 500;
int argp;
+ char *prog_name = g_path_get_basename (argv[0]);
g_type_init();
@@ -155,7 +153,6 @@ int main(int argc, char *argv[])
char *opt = argv[argp++];
if (strcmp(opt, "--help") == 0)
{
- char *prog_name = g_get_prgname();
printf("%s - An example viewer for the pango ft2 extension\n"
"\n"
"Syntax:\n"
@@ -163,8 +160,8 @@ int main(int argc, char *argv[])
"\n"
"Options:\n"
" --family f Set the initial family. Default is '%s'.\n"
- " --scale s Set the initial scale. Default is %d\n",
- " --rtl Set base dir to RTL. Default is LTR.\n",
+ " --scale s Set the initial scale. Default is %d\n"
+ " --rtl Set base dir to RTL. Default is LTR.\n"
" --width Width of drawing window. Default is 500.\n",
prog_name, prog_name, init_family, init_scale);
exit(0);
@@ -195,7 +192,7 @@ int main(int argc, char *argv[])
if (argp + 1 != argc)
{
- fprintf (stderr, "Usage: %s [options] FILE\n", g_get_prgname());
+ fprintf (stderr, "Usage: %s [options] FILE\n", prog_name);
exit(1);
}
@@ -270,4 +267,6 @@ int main(int argc, char *argv[])
g_free (buf);
}
}
+
+ return 0;
}