From 96fa02baec9bab4ed7610970ab1058051312f584 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sun, 27 Jul 2014 16:45:26 +0200 Subject: [PATCH] Reinstate removed code. * nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange): Reinstate code removed by the prevoius commit to this file. --- src/ChangeLog | 5 +++++ src/nsterm.m | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 28fc913903c..64c8adae816 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-07-27 Jan Djärv + + * nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange): + Reinstate code removed by the prevoius commit to this file. + 2014-07-27 Martin Rudalics * buffer.h (struct buffer): New fields scroll_bar_height and diff --git a/src/nsterm.m b/src/nsterm.m index 9c64ab5f93b..47ad28aaa61 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4687,9 +4687,30 @@ ns_term_shutdown (int sig) ((EmacsApp *)self)->applicationDidFinishLaunchingCalled = YES; #endif [NSApp setServicesProvider: NSApp]; + + [self antialiasThresholdDidChange:nil]; +#ifdef NS_IMPL_COCOA +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 + [[NSNotificationCenter defaultCenter] + addObserver:self + selector:@selector(antialiasThresholdDidChange:) + name:NSAntialiasThresholdChangedNotification + object:nil]; +#endif +#endif + ns_send_appdefined (-2); } +- (void)antialiasThresholdDidChange:(NSNotification *)notification +{ +#ifdef NS_IMPL_COCOA +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 + macfont_update_antialias_threshold (); +#endif +#endif +} + /* Termination sequences: C-x C-c: -- 2.39.2