diff options
| author | Chong Yidong | 2010-02-25 19:48:53 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-02-25 19:48:53 -0500 |
| commit | cf2fdcfbd30470838239d8199da909a990cdeb3b (patch) | |
| tree | a6234bcdd97cc7faeabafccf131310fee497f612 /src/nsfont.m | |
| parent | 8a249abc87b8775c9412fe3a1bed73e429cdacab (diff) | |
| download | emacs-cf2fdcfbd30470838239d8199da909a990cdeb3b.tar.gz emacs-cf2fdcfbd30470838239d8199da909a990cdeb3b.zip | |
* nsfont.m (nsfont_draw): ns_antialias_text should be a Lisp_Object (Bug#4736).
Diffstat (limited to 'src/nsfont.m')
| -rw-r--r-- | src/nsfont.m | 4 |
1 files changed, 2 insertions, 2 deletions
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; | |||
| 50 | static Lisp_Object Vns_reg_to_script; | 50 | static Lisp_Object Vns_reg_to_script; |
| 51 | static Lisp_Object Qapple, Qroman, Qmedium; | 51 | static Lisp_Object Qapple, Qroman, Qmedium; |
| 52 | extern Lisp_Object Qappend; | 52 | extern Lisp_Object Qappend; |
| 53 | extern int ns_antialias_text; | 53 | extern Lisp_Object ns_antialias_text; |
| 54 | extern float ns_antialias_threshold; | 54 | extern float ns_antialias_threshold; |
| 55 | extern int ns_tmp_flags; | 55 | extern int ns_tmp_flags; |
| 56 | extern struct nsfont_info *ns_tmp_font; | 56 | 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, | |||
| 1231 | 1231 | ||
| 1232 | CGContextSetFont (gcontext, font->cgfont); | 1232 | CGContextSetFont (gcontext, font->cgfont); |
| 1233 | CGContextSetFontSize (gcontext, font->size); | 1233 | CGContextSetFontSize (gcontext, font->size); |
| 1234 | if (ns_antialias_text == Qnil || font->size <= ns_antialias_threshold) | 1234 | if (NILP (ns_antialias_text) || font->size <= ns_antialias_threshold) |
| 1235 | CGContextSetShouldAntialias (gcontext, 0); | 1235 | CGContextSetShouldAntialias (gcontext, 0); |
| 1236 | else | 1236 | else |
| 1237 | CGContextSetShouldAntialias (gcontext, 1); | 1237 | CGContextSetShouldAntialias (gcontext, 1); |