[cairo] [PATCH] filtering value preservation

graydon hoare graydon at redhat.com
Tue Jan 27 19:30:01 PST 2004


this patch makes the functions which create "similar surfaces" preserve 
the filter value of a surface. without it, compositing an image surface 
against an xlib surface always uses nearest neighbour filtering, since 
the xlib surface pushes a copy of the image to the X server, and drops 
the surface's filter setting. once applied, it uses the surface's setting.

comments? ok to commit?


2004-01-27  Graydon Hoare  <graydon at redhat.com>

	* src/cairoint.h (cairo_surface): New "filter" field.
	* src/cairo_surface.c
	(cairo_surface_get_filter): New function.
	(cairo_surface_set_filter): Store filter in surface.
	* src/cairo.h (cairo_surface_get_filter): Declare.
	* src/cairo_image_surface.c
	(_cairo_image_surface_create_similar): Copy filter setting.
	* src/cairo_xlib_surface.c
	(_cairo_xlib_surface_create_similar): Copy filter setting.
	(_cairo_xlib_surface_set_filter): Use constants from Xrender.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-filter-fix.patch
Type: text/x-patch
Size: 2930 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20040127/7e5034c5/cairo-filter-fix.bin

More information about the cairo mailing list