(mwin__xft_render): Don't use anti-alias if the
authorhanda <handa>
Mon, 10 May 2004 07:15:10 +0000 (07:15 +0000)
committerhanda <handa>
Mon, 10 May 2004 07:15:10 +0000 (07:15 +0000)
device's depth is 1 (i.e. monochrome).

src/m17n-X.c

index 55a20c2..7012e56 100644 (file)
@@ -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;