summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-05-16 20:27:51 +0000
committerKristian Høgsberg <krh@redhat.com>2005-05-16 20:27:51 +0000
commit2801b54a944fc9e1072c5dcb9f1153a0c9f42de5 (patch)
tree0d05b637fa828412d9bbe72f649133cb246ff563 /test
parent8753ae8ba20fcceaef3ef1dda89129f0456fccf6 (diff)
2005-05-16 Kristian Høgsberg <krh@redhat.com>
* test/gtk-cairo-test.cc: Update this test case also.
Diffstat (limited to 'test')
-rw-r--r--test/gtk-cairo-test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/gtk-cairo-test.cc b/test/gtk-cairo-test.cc
index a957c9c3..711da571 100644
--- a/test/gtk-cairo-test.cc
+++ b/test/gtk-cairo-test.cc
@@ -23,6 +23,7 @@
#include <gdk/gdkx.h>
#include "CairoOutputDev.h"
#include <cairo-xlib.h>
+#include <X11/Xutil.h>
#include "PDFDoc.h"
#include "GlobalParams.h"
@@ -112,8 +113,8 @@ GDKCairoOutputDev::createCairo(GfxState *state) {
display = gdk_x11_drawable_get_xdisplay (pixmap);
xid = gdk_x11_drawable_get_xid (pixmap);
- surface = cairo_xlib_surface_create_for_pixmap_with_visual(display, xid,
- DefaultVisual(display, DefaultScreen(display)));
+ surface = cairo_xlib_surface_create_with_visual(display, xid,
+ DefaultVisual(display, DefaultScreen(display)));
cairo = cairo_create (surface);
cairo_surface_destroy (surface);
}