Commit e6a2b4c2 authored by Alan Third's avatar Alan Third

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.
parent 5fe41a23
......@@ -83,9 +83,6 @@ extern void mac_register_font_driver (struct frame *f);
extern void *macfont_get_nsctfont (struct font *font);
extern void macfont_update_antialias_threshold (void);
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
/* This is an undocumented function that is probably not available
pre-10.8. */
/* This is an undocumented function. */
extern void CGContextSetFontSmoothingStyle(CGContextRef, int)
__attribute__((weak_import));
#endif
......@@ -2888,14 +2888,11 @@ So we use CTFontDescriptorCreateMatchingFontDescriptor (no
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment