[cairo-commit] cairo/src cairo-xlib-surface.c,1.96,1.97
Owen Taylor
commit at pdx.freedesktop.org
Wed Jul 27 15:04:06 PDT 2005
Committed by: otaylor
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv29247/src
Modified Files:
cairo-xlib-surface.c
Log Message:
2005-07-27 Owen Taylor <otaylor at redhat.com>
* src/cairo-xlib-surface.c (_cairo_xlib_surface_get_font_options):
Turn off antialiasing for rendering to alpha surfaces.
Index: cairo-xlib-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-xlib-surface.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- cairo-xlib-surface.c 27 Jul 2005 13:45:37 -0000 1.96
+++ cairo-xlib-surface.c 27 Jul 2005 22:04:04 -0000 1.97
@@ -1329,9 +1329,12 @@
_cairo_xlib_surface_get_font_options (void *abstract_surface,
cairo_font_options_t *options)
{
- cairo_xlib_surface_t *surface = abstract_surface;
-
- *options = surface->screen_info->font_options;
+ cairo_xlib_surface_t *surface = abstract_surface;
+
+ *options = surface->screen_info->font_options;
+
+ if (_surface_has_alpha (surface) && options->antialias == CAIRO_ANTIALIAS_SUBPIXEL)
+ options->antialias = CAIRO_ANTIALIAS_GRAY;
}
static cairo_int_status_t
More information about the cairo-commit
mailing list