From bef4b1371676444e51dcd73f1ec52024265c1f5b Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 13 May 2005 17:54:43 +0000 Subject: src/cairo-xlib-surface.c src/cairo-xlib.h doc/public/cairo-sections.txt: Drop the _for_pixmap() and _for_window() out of the create functions and use some lazy cleverness to sniff the information out as needed. src/cairo-xlib-surface.c src/cairo-xlib-test.h Makefile.am: add cairo_test_xlib_disable_render() to turn off RENDER for tests. Test various different types of Xlib surface creation. Remove left-over include of Xrender.h. --- src/cairo-xlib.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/cairo-xlib.h') diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h index 29b260dc..3024a53b 100644 --- a/src/cairo-xlib.h +++ b/src/cairo-xlib.h @@ -42,24 +42,18 @@ #if CAIRO_HAS_XLIB_SURFACE #include -#include CAIRO_BEGIN_DECLS cairo_surface_t * -cairo_xlib_surface_create_for_pixmap (Display *dpy, - Pixmap pixmap, - cairo_format_t format); +cairo_xlib_surface_create (Display *dpy, + Drawable drawable, + cairo_format_t format); cairo_surface_t * -cairo_xlib_surface_create_for_pixmap_with_visual (Display *dpy, - Pixmap pixmap, - Visual *visual); - -cairo_surface_t * -cairo_xlib_surface_create_for_window_with_visual (Display *dpy, - Window window, - Visual *visual); +cairo_xlib_surface_create_with_visual (Display *dpy, + Drawable drawable, + Visual *visual); void cairo_xlib_surface_set_size (cairo_surface_t *surface, -- cgit v1.2.3