[cairo] [PATCH] filtering value preservation
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.
(cairo_surface_get_filter): New function.
(cairo_surface_set_filter): Store filter in surface.
* src/cairo.h (cairo_surface_get_filter): Declare.
(_cairo_image_surface_create_similar): Copy filter setting.
(_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...
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