summaryrefslogtreecommitdiff
path: root/examples/cairosimple.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-02-03 20:23:19 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-02-03 20:23:19 +0000
commit7782bba2c87b79bff8fa4e62ed84b95b74574617 (patch)
tree79d989164f0c8ab27e825ef98ef3c47a14c39228 /examples/cairosimple.c
parentc7e3de50fdaec8436fd78b229bbdf04c6c9271d3 (diff)
downloadpango-7782bba2c87b79bff8fa4e62ed84b95b74574617.tar.gz
Open the file with mode "wb", include cairo-png.h.
2005-02-03 Owen Taylor <otaylor@redhat.com> * examples/cairosimple.c: Open the file with mode "wb", include cairo-png.h. * examples/xftview.c examples/cairoview.c: Set WM_NORMAL_HINTS to avoid triggering a metacity bug. * examples/cairoview.c: Include cairo-xlib.h. * configure.in: Add checks for the Win32 Cairo backend. (not committing the code yet). * examples/Makefile.am pango/Makefile.am: add CAIRO_CFLAGS. * pango/pangocairo-fc.h pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c pango/pangofc-fontmap.[ch]: Rework Cairo/Fontconfig backend to use the current Cairo API. Make some PangoFcFontMap changes to enable that. * pango/pango/pangocairo-private.h pango/pangocairo-render.c: Update for cairo_font_t changes.
Diffstat (limited to 'examples/cairosimple.c')
-rw-r--r--examples/cairosimple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/cairosimple.c b/examples/cairosimple.c
index 1ec7edf2..49528995 100644
--- a/examples/cairosimple.c
+++ b/examples/cairosimple.c
@@ -1,5 +1,6 @@
#include <math.h>
#include <pango/pangocairo.h>
+#include <cairo-png.h>
static void
draw_text (cairo_t *cr)
@@ -64,7 +65,7 @@ int main (int argc, char **argv)
return 1;
}
- f = fopen (argv[1], "w");
+ f = fopen (argv[1], "wb");
if (!f)
{
g_printerr ("Usage: cannot open '%s'\n", argv[1]);