From: handa Date: Mon, 10 May 2004 07:15:10 +0000 (+0000) Subject: (mwin__xft_render): Don't use anti-alias if the X-Git-Tag: withdl~224 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c33f570ca44c3698d4b458348a02519a953faea;p=m17n%2Fm17n-lib.git (mwin__xft_render): Don't use anti-alias if the device's depth is 1 (i.e. monochrome). --- diff --git a/src/m17n-X.c b/src/m17n-X.c index 55a20c2..7012e56 100644 --- a/src/m17n-X.c +++ b/src/m17n-X.c @@ -2242,7 +2242,7 @@ mwin__xft_render (MDrawWindow win, int x, int y, XftColor *xft_color = (! reverse ? &((GCInfo *) rface->info)->xft_color_fore : &((GCInfo *) rface->info)->xft_color_back); - XftFont *xft_font = (gstring->control.anti_alias + XftFont *xft_font = (gstring->control.anti_alias && frame->device->depth > 1 ? font_info->font_aa : font_info->font_no_aa); MGlyph *g; FT_UInt *glyphs;