summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2014-07-20 15:18:47 +0200
committerJan Djärv <jan.h.d@swipnet.se>2014-07-20 15:18:47 +0200
commit880b716696b4d8737e7199d6487f17b7e6825dd4 (patch)
tree92dac1478861aa683ce4a90308e5f6bb05849d09 /src/nsterm.m
parenteb8cb39e8930b476e20bb8434e28a350e46ece34 (diff)
downloademacs-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.m21
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: