mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
Turn off antialiasing for rendering to alpha surfaces.
This commit is contained in:
parent
7b2b9df4e7
commit
c884c4c541
2 changed files with 11 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-07-27 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* src/cairo-xlib-surface.c (_cairo_xlib_surface_get_font_options):
|
||||
Turn off antialiasing for rendering to alpha surfaces.
|
||||
|
||||
2005-07-27 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* ROADMAP: Note that the XFAIL tests all need to be fixed before
|
||||
|
|
|
|||
|
|
@ -1329,9 +1329,12 @@ static void
|
|||
_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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue