aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2010-02-26 10:22:23 +0900
committerKenichi Handa2010-02-26 10:22:23 +0900
commit06aac9016fc074f856a4b374572024a68784e630 (patch)
tree8f8af86b761b2fa897453ef91e57096008af9f7f /src
parent7379cfce157cbd68045970dafa92c6216ced84b3 (diff)
parentcf2fdcfbd30470838239d8199da909a990cdeb3b (diff)
downloademacs-06aac9016fc074f856a4b374572024a68784e630.tar.gz
emacs-06aac9016fc074f856a4b374572024a68784e630.zip
from trunk
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsfont.m4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8ad6941a806..36e056b786d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,11 @@
2 2
3 * xdisp.c (reseat_to_string): Fix previous change. 3 * xdisp.c (reseat_to_string): Fix previous change.
4 4
52010-02-26 David Reitter <david.reitter@gmail.com>
6
7 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8 Lisp_Object (Bug#4736).
9
52010-02-25 Kenichi Handa <handa@m17n.org> 102010-02-25 Kenichi Handa <handa@m17n.org>
6 11
7 * xdisp.c (reseat_to_string): Fix previous change (bug#5609). 12 * 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;
50static Lisp_Object Vns_reg_to_script; 50static Lisp_Object Vns_reg_to_script;
51static Lisp_Object Qapple, Qroman, Qmedium; 51static Lisp_Object Qapple, Qroman, Qmedium;
52extern Lisp_Object Qappend; 52extern Lisp_Object Qappend;
53extern int ns_antialias_text; 53extern Lisp_Object ns_antialias_text;
54extern float ns_antialias_threshold; 54extern float ns_antialias_threshold;
55extern int ns_tmp_flags; 55extern int ns_tmp_flags;
56extern struct nsfont_info *ns_tmp_font; 56extern 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);