summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
author5 <yosh@gimp.org>2005-05-14 06:55:14 +0000
committerManish Singh <yosh@src.gnome.org>2005-05-14 06:55:14 +0000
commit84c59834e80daa3b01348bbe075996e1f920dfd0 (patch)
treeb623d60a93190951207875098672be86b7920ade /examples
parent868c04571452fd0b6b934b8032f2360b681b20a5 (diff)
downloadpango-84c59834e80daa3b01348bbe075996e1f920dfd0.tar.gz
#include Xutil.h explicitly, update for renamed cairo API.
Fri May 13 23:54:29 2005 <yosh@gimp.org> * examples/cairoview.c: #include Xutil.h explicitly, update for renamed cairo API.
Diffstat (limited to 'examples')
-rw-r--r--examples/cairoview.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/cairoview.c b/examples/cairoview.c
index f0fe855a..9c922c7f 100644
--- a/examples/cairoview.c
+++ b/examples/cairoview.c
@@ -26,6 +26,8 @@
#include <stdio.h>
#include <string.h>
+#include <X11/Xutil.h>
+
#include "renderdemo.h"
#include <pango/pangocairo.h>
@@ -141,9 +143,9 @@ update ()
extents->x2 - extents->x1,
extents->y2 - extents->y1,
DefaultDepth (display, screen));
- surface = cairo_xlib_surface_create_for_pixmap_with_visual (display,
- pixmap,
- DefaultVisual (display, screen));
+ surface = cairo_xlib_surface_create_with_visual (display,
+ pixmap,
+ DefaultVisual (display, screen));
cr = render_data.cr = cairo_create (surface);