From: Jan Djärv Date: Sun, 27 Jul 2014 14:45:26 +0000 (+0200) Subject: Reinstate removed code. X-Git-Tag: emacs-25.0.90~2636^3~28 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=96fa02baec9bab4ed7610970ab1058051312f584;p=emacs.git Reinstate removed code. * nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange): Reinstate code removed by the prevoius commit to this file. --- 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: