diff options
| author | Adrian Robert | 2009-09-18 15:12:34 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-09-18 15:12:34 +0000 |
| commit | 0fde1939fcafd16753f3a63f06487a761311e358 (patch) | |
| tree | 1153bfd48d9f3d129caa6ef374add17a0afd26a2 /src | |
| parent | 9518c243859d76766164e08949b6fd8630cd3322 (diff) | |
| download | emacs-0fde1939fcafd16753f3a63f06487a761311e358.tar.gz emacs-0fde1939fcafd16753f3a63f06487a761311e358.zip | |
(nsfont_draw) [NS_IMPL_COCOA]: Don't use ns_use_qd_smoothing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsfont.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nsfont.m b/src/nsfont.m index 1319a376631..1359a3e248d 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -48,7 +48,7 @@ extern Lisp_Object Qns; | |||
| 48 | extern Lisp_Object Qnormal, Qbold, Qitalic, Qcondensed, Qexpanded; | 48 | extern Lisp_Object Qnormal, Qbold, Qitalic, Qcondensed, Qexpanded; |
| 49 | static Lisp_Object Qapple, Qroman, Qmedium; | 49 | static Lisp_Object Qapple, Qroman, Qmedium; |
| 50 | extern Lisp_Object Qappend; | 50 | extern Lisp_Object Qappend; |
| 51 | extern int ns_antialias_text, ns_use_qd_smoothing; | 51 | extern int ns_antialias_text; |
| 52 | extern float ns_antialias_threshold; | 52 | extern float ns_antialias_threshold; |
| 53 | extern int ns_tmp_flags; | 53 | extern int ns_tmp_flags; |
| 54 | extern struct nsfont_info *ns_tmp_font; | 54 | extern struct nsfont_info *ns_tmp_font; |
| @@ -1199,8 +1199,6 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1199 | CGContextSetShouldAntialias (gcontext, 0); | 1199 | CGContextSetShouldAntialias (gcontext, 0); |
| 1200 | else | 1200 | else |
| 1201 | CGContextSetShouldAntialias (gcontext, 1); | 1201 | CGContextSetShouldAntialias (gcontext, 1); |
| 1202 | if (EQ (ns_use_qd_smoothing, Qt)) | ||
| 1203 | CGContextSetFontRenderingMode (gcontext, 2); /* 0 is Cocoa, 2 is QD */ | ||
| 1204 | 1202 | ||
| 1205 | CGContextSetTextMatrix (gcontext, fliptf); | 1203 | CGContextSetTextMatrix (gcontext, fliptf); |
| 1206 | 1204 | ||