From: Chong Yidong Date: Fri, 26 Feb 2010 00:48:53 +0000 (-0500) Subject: * nsfont.m (nsfont_draw): ns_antialias_text should be a Lisp_Object (Bug#4736). X-Git-Tag: emacs-pretest-23.1.93~7^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf2fdcfbd30470838239d8199da909a990cdeb3b;p=emacs.git * nsfont.m (nsfont_draw): ns_antialias_text should be a Lisp_Object (Bug#4736). --- diff --git a/src/ChangeLog b/src/ChangeLog index 0b67340c1fd..60c63a8ea97 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/nsfont.m b/src/nsfont.m index 97d74a82f2b..59d5ee73db1 100644 --- a/src/nsfont.m +++ b/src/nsfont.m @@ -50,7 +50,7 @@ extern Lisp_Object Qnormal, Qbold, Qitalic, Qcondensed, Qexpanded; 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 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, 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);