# HG changeset patch # User Chong Yidong # Date 1267145333 18000 # Node ID 0255e27f26c9900b617a4b4bf9eb14b4bd440462 # Parent a83491958b95052fefb877363980dfb844a7bad6 * nsfont.m (nsfont_draw): ns_antialias_text should be a Lisp_Object (Bug#4736). diff -r a83491958b95 -r 0255e27f26c9 src/ChangeLog --- a/src/ChangeLog Thu Feb 25 21:21:25 2010 +0000 +++ b/src/ChangeLog Thu Feb 25 19:48:53 2010 -0500 @@ -1,3 +1,8 @@ +2010-02-26 David Reitter + + * nsfont.m (nsfont_draw): ns_antialias_text should be a + Lisp_Object (Bug#4736). + 2010-02-25 Kenichi Handa * xdisp.c (reseat_to_string): Fix previous change (bug#5609). diff -r a83491958b95 -r 0255e27f26c9 src/nsfont.m --- a/src/nsfont.m Thu Feb 25 21:21:25 2010 +0000 +++ b/src/nsfont.m Thu Feb 25 19:48:53 2010 -0500 @@ -50,7 +50,7 @@ static Lisp_Object Vns_reg_to_script; static Lisp_Object Qapple, Qroman, Qmedium; extern Lisp_Object Qappend; -extern int ns_antialias_text; +extern Lisp_Object ns_antialias_text; extern float ns_antialias_threshold; extern int ns_tmp_flags; extern struct nsfont_info *ns_tmp_font; @@ -1231,7 +1231,7 @@ CGContextSetFont (gcontext, font->cgfont); CGContextSetFontSize (gcontext, font->size); - if (ns_antialias_text == Qnil || font->size <= ns_antialias_threshold) + if (NILP (ns_antialias_text) || font->size <= ns_antialias_threshold) CGContextSetShouldAntialias (gcontext, 0); else CGContextSetShouldAntialias (gcontext, 1);