diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2014-07-20 15:18:47 +0200 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2014-07-20 15:18:47 +0200 |
commit | 880b716696b4d8737e7199d6487f17b7e6825dd4 (patch) | |
tree | 92dac1478861aa683ce4a90308e5f6bb05849d09 /src/nsterm.m | |
parent | eb8cb39e8930b476e20bb8434e28a350e46ece34 (diff) | |
download | emacs-880b716696b4d8737e7199d6487f17b7e6825dd4.tar.gz |
* macfont.h (macfont_update_antialias_threshold): Declare.
* macfont.m (macfont_update_antialias_threshold): Remove static.
* nsterm.h (EmacsApp): Add antialiasThresholdDidChange.
* nsterm.m (applicationDidFinishLaunching:): Call
antialiasThresholdDidChange, register for antialias changes.
(antialiasThresholdDidChange:): New method for EmacsApp.
Fixes: debbugs:17534
Diffstat (limited to 'src/nsterm.m')
-rw-r--r-- | src/nsterm.m | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index c7cb4faa3b7..4b1ebb2b516 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4668,9 +4668,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: |