]> git.eshelyaron.com Git - emacs.git/commitdiff
Reinstate removed code.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 27 Jul 2014 14:45:26 +0000 (16:45 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 27 Jul 2014 14:45:26 +0000 (16:45 +0200)
* nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange):
Reinstate code removed by the prevoius commit to this file.

src/ChangeLog
src/nsterm.m

index 28fc913903c9bbf68d7ed8cbf9675729dca1940d..64c8adae8166c91f5db9e8447699fd42118974a5 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-27  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (applicationDidFinishLaunching antialiasThresholdDidChange):
+       Reinstate code removed by the prevoius commit to this file.
+
 2014-07-27  Martin Rudalics  <rudalics@gmx.at>
 
        * buffer.h (struct buffer): New fields scroll_bar_height and
index 9c64ab5f93b665d59ee8c9dae0784c10219ae3f6..47ad28aaa617660f09f657a7b2a07909e40c2e10 100644 (file)
@@ -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: