Commit 420134a1 authored by Kristian Høgsberg's avatar Kristian Høgsberg

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

        * poppler/CairoOutputDevX.cc:
        * test/gtk-cairo-test.cc: Chase the cairo xlib constructor again.
parent 6fd62953
2005-05-17 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoOutputDevX.cc:
* test/gtk-cairo-test.cc: Chase the cairo xlib constructor again.
2005-05-16 Kristian Høgsberg <krh@redhat.com>
Patch from Christian Persch (#3300):
......
......@@ -109,8 +109,9 @@ CairoOutputDevX::createCairo(GfxState *state) {
gc = XCreateGC(display, pixmap, GCForeground, &gcv);
XFillRectangle(display, pixmap, gc, 0, 0, w, h);
surface = cairo_xlib_surface_create_with_visual(display, pixmap,
DefaultVisual(display, DefaultScreen(display)));
surface = cairo_xlib_surface_create(display, pixmap,
DefaultVisual(display, DefaultScreen(display)),
w, h);
cairo = cairo_create (surface);
cairo_surface_destroy (surface);
......
......@@ -113,8 +113,9 @@ GDKCairoOutputDev::createCairo(GfxState *state) {
display = gdk_x11_drawable_get_xdisplay (pixmap);
xid = gdk_x11_drawable_get_xid (pixmap);
surface = cairo_xlib_surface_create_with_visual(display, xid,
DefaultVisual(display, DefaultScreen(display)));
surface = cairo_xlib_surface_create(display, xid,
DefaultVisual(display, DefaultScreen(display)),
w, h);
cairo = cairo_create (surface);
cairo_surface_destroy (surface);
}
......
Markdown is supported
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