summaryrefslogtreecommitdiff
path: root/test/gtk-cairo-test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/gtk-cairo-test.cc')
-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);
}