[cairo-commit] cairo/test cairo-test.c,1.45,1.46
Keith Packard
commit at pdx.freedesktop.org
Wed Jul 20 18:52:34 PDT 2005
Committed by: keithp
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv12870/test
Modified Files:
cairo-test.c
Log Message:
2005-07-20 Keith Packard <keithp at keithp.com>
reviewed by: otaylor
* src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar),
(_cairo_xlib_surface_same_screen),
(_cairo_xlib_surface_clone_similar), (_surfaces_compatible),
(_categorize_composite_operation),
(_cairo_xlib_surface_create_internal),
(_cairo_xlib_screen_from_visual), (cairo_xlib_surface_create),
(cairo_xlib_surface_create_for_bitmap),
(cairo_xlib_surface_create_with_xrender_format):
* src/cairo-xlib-xrender.h:
* src/cairo-xlib.h:
* test/cairo-test.c: (create_xlib_surface):
Add Screen* arguments to:
cairo_xlib_surface_create_with_xrender_format
cairo_xlib_surface_create_for_bitmap
Required to correctly identify when two Xlib surfaces are
compatible with Core and Render rendering requests.
cairo_xlib_surface_create can determine the screen given
the required Visual *
Index: cairo-test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- cairo-test.c 18 Jul 2005 15:04:16 -0000 1.45
+++ cairo-test.c 21 Jul 2005 01:52:31 -0000 1.46
@@ -377,6 +377,7 @@
width, height, xrender_format->depth);
surface = cairo_xlib_surface_create_with_xrender_format (dpy, xtc->pixmap,
+ DefaultScreenOfDisplay (dpy),
xrender_format,
width, height);
return surface;
More information about the cairo-commit
mailing list