diff options
author | Alan Third <alan@idiocy.org> | 2017-08-31 20:42:35 +0100 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2017-08-31 20:44:59 +0100 |
commit | e6a2b4c2df96ed8780ff407481a18e3f4299c8ad (patch) | |
tree | d2eacedb00a9a1f56e8fe3a25841e01b9d93da64 /src/macfont.m | |
parent | 5fe41a23d811b17bcde0921b37b89175806c83ef (diff) | |
download | emacs-e6a2b4c2df96ed8780ff407481a18e3f4299c8ad.tar.gz |
Remove unneeded version checks (bug#28222)
* src/macfont.h (CGContextSetFontSmoothingStyle): Remove version
check.
* src/macfont.m (macfont_draw): Remove version check, and test for
existence of CGContextSetFontSmoothingStyle.
Diffstat (limited to 'src/macfont.m')
-rw-r--r-- | src/macfont.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/macfont.m b/src/macfont.m index 33c28f7349a..59891353cd3 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -2888,14 +2888,11 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, if (no_antialias_p) CGContextSetShouldAntialias (context, false); -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080 - if (!NILP (ns_use_thin_smoothing) - && CGContextSetFontSmoothingStyle != NULL) + if (!NILP (ns_use_thin_smoothing)) { CGContextSetShouldSmoothFonts(context, YES); CGContextSetFontSmoothingStyle(context, 16); } -#endif CGContextSetTextMatrix (context, atfm); CGContextSetTextPosition (context, text_position.x, text_position.y); |