[poppler] poppler/test: gtk-cairo-test.cc,1.3,1.4

Kristian Hogsberg krh at freedesktop.org
Mon May 16 13:27:54 PDT 2005


Update of /cvs/poppler/poppler/test
In directory gabe:/tmp/cvs-serv32332/test

Modified Files:
	gtk-cairo-test.cc 
Log Message:
2005-05-16  Kristian Høgsberg  <krh at redhat.com>

        * test/gtk-cairo-test.cc: Update this test case also.



Index: gtk-cairo-test.cc
===================================================================
RCS file: /cvs/poppler/poppler/test/gtk-cairo-test.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- gtk-cairo-test.cc	12 May 2005 21:26:25 -0000	1.3
+++ gtk-cairo-test.cc	16 May 2005 20:27:52 -0000	1.4
@@ -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 @@
     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);
   }



More information about the poppler mailing list