Commit 2801b54a authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

2005-05-16 Kristian Høgsberg <krh@redhat.com>

        * test/gtk-cairo-test.cc: Update this test case also.
parent 8753ae8b
2005-05-16 Kristian Høgsberg <krh@redhat.com> 2005-05-16 Kristian Høgsberg <krh@redhat.com>
* test/gtk-cairo-test.cc: Update this test case also.
* poppler/CairoOutputDevX.cc: Track changes to cairo Xlib surface * poppler/CairoOutputDevX.cc: Track changes to cairo Xlib surface
constructors. constructors.
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <gdk/gdkx.h> #include <gdk/gdkx.h>
#include "CairoOutputDev.h" #include "CairoOutputDev.h"
#include <cairo-xlib.h> #include <cairo-xlib.h>
#include <X11/Xutil.h>
#include "PDFDoc.h" #include "PDFDoc.h"
#include "GlobalParams.h" #include "GlobalParams.h"
...@@ -112,8 +113,8 @@ GDKCairoOutputDev::createCairo(GfxState *state) { ...@@ -112,8 +113,8 @@ GDKCairoOutputDev::createCairo(GfxState *state) {
display = gdk_x11_drawable_get_xdisplay (pixmap); display = gdk_x11_drawable_get_xdisplay (pixmap);
xid = gdk_x11_drawable_get_xid (pixmap); xid = gdk_x11_drawable_get_xid (pixmap);
surface = cairo_xlib_surface_create_for_pixmap_with_visual(display, xid, surface = cairo_xlib_surface_create_with_visual(display, xid,
DefaultVisual(display, DefaultScreen(display))); DefaultVisual(display, DefaultScreen(display)));
cairo = cairo_create (surface); cairo = cairo_create (surface);
cairo_surface_destroy (surface); cairo_surface_destroy (surface);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment