summaryrefslogtreecommitdiff
path: root/src/cairo-quartz-surface.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2012-01-06 16:55:06 +0100
committerAndrea Canciani <ranma42@gmail.com>2012-01-15 16:23:14 +0100
commit7058e8c18135eddcb10fbb9fc9784c87f61f6953 (patch)
treedb8dd12d8e93cc28045b127867268abc52e55783 /src/cairo-quartz-surface.c
parent29145f4e483db8126aab36bf8686d41eb49a31b4 (diff)
downloadcairo-7058e8c18135eddcb10fbb9fc9784c87f61f6953.tar.gz
quartz: Make glyph antialiasing consistent with quartz-font
CAIRO_ANTIALIAS_{FAST,GOOD,BEST} were introduced and used in cairo-quartz-font.c by commit 70cd3b473d09e9ad3d803014a904a22639db1a24. Fixes the warnings: cairo-quartz-surface.c: In function '_cairo_quartz_cg_glyphs': cairo-quartz-surface.c:1976: warning: enumeration value 'CAIRO_ANTIALIAS_FAST' not handled in switch cairo-quartz-surface.c:1976: warning: enumeration value 'CAIRO_ANTIALIAS_GOOD' not handled in switch cairo-quartz-surface.c:1976: warning: enumeration value 'CAIRO_ANTIALIAS_BEST' not handled in switch
Diffstat (limited to 'src/cairo-quartz-surface.c')
-rw-r--r--src/cairo-quartz-surface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 464361865..4a9b851ce 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -1980,6 +1980,7 @@ _cairo_quartz_cg_glyphs (const cairo_compositor_t *compositor,
switch (scaled_font->options.antialias) {
case CAIRO_ANTIALIAS_SUBPIXEL:
+ case CAIRO_ANTIALIAS_BEST:
CGContextSetShouldAntialias (state.cgMaskContext, TRUE);
CGContextSetShouldSmoothFonts (state.cgMaskContext, TRUE);
if (CGContextSetAllowsFontSmoothingPtr &&
@@ -1993,6 +1994,8 @@ _cairo_quartz_cg_glyphs (const cairo_compositor_t *compositor,
CGContextSetShouldAntialias (state.cgMaskContext, FALSE);
break;
case CAIRO_ANTIALIAS_GRAY:
+ case CAIRO_ANTIALIAS_GOOD:
+ case CAIRO_ANTIALIAS_FAST:
CGContextSetShouldAntialias (state.cgMaskContext, TRUE);
CGContextSetShouldSmoothFonts (state.cgMaskContext, FALSE);
break;