[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 r117389: * macfont.h (macfont_update_antialias_th
From: |
Jan D. |
Subject: |
[Emacs-diffs] emacs-24 r117389: * macfont.h (macfont_update_antialias_threshold): Declare. |
Date: |
Sun, 20 Jul 2014 13:18:55 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117389
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/17534
committer: Jan D. <address@hidden>
branch nick: emacs-24
timestamp: Sun 2014-07-20 15:18:47 +0200
message:
* 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.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/macfont.h macfont.h-20130915173740-04lgloz0557bz98l-1
src/macfont.m macfont.m-20130915173740-04lgloz0557bz98l-2
src/nsterm.h nsterm.h-20091113204419-o5vbwnq5f7feedwu-8746
src/nsterm.m nsterm.m-20091113204419-o5vbwnq5f7feedwu-8747
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-07-17 15:39:07 +0000
+++ b/src/ChangeLog 2014-07-20 13:18:47 +0000
@@ -1,3 +1,15 @@
+2014-07-20 Jan Djärv <address@hidden>
+
+ * nsterm.m (applicationDidFinishLaunching:): Call
+ antialiasThresholdDidChange, register for antialias changes (Bug#17534).
+ (antialiasThresholdDidChange:): New method for EmacsApp.
+
+ * nsterm.h (EmacsApp): Add antialiasThresholdDidChange.
+
+ * macfont.m (macfont_update_antialias_threshold): Remove static.
+
+ * macfont.h (macfont_update_antialias_threshold): Declare.
+
2014-07-17 Eli Zaretskii <address@hidden>
* w32select.c (setup_windows_coding_system): Apply
=== modified file 'src/macfont.h'
--- a/src/macfont.h 2014-01-01 07:43:34 +0000
+++ b/src/macfont.h 2014-07-20 13:18:47 +0000
@@ -144,4 +144,5 @@
extern void mac_register_font_driver (struct frame *f);
extern void *macfont_get_nsctfont (struct font *font);
+extern void macfont_update_antialias_threshold (void);
=== modified file 'src/macfont.m'
--- a/src/macfont.m 2014-01-13 10:32:48 +0000
+++ b/src/macfont.m 2014-07-20 13:18:47 +0000
@@ -729,7 +729,7 @@
static CGFloat macfont_antialias_threshold;
-static void
+void
macfont_update_antialias_threshold (void)
{
int threshold;
=== modified file 'src/nsterm.h'
--- a/src/nsterm.h 2014-04-04 16:32:24 +0000
+++ b/src/nsterm.h 2014-07-20 13:18:47 +0000
@@ -111,6 +111,7 @@
#endif
}
- (void)logNotification: (NSNotification *)notification;
+- (void)antialiasThresholdDidChange:(NSNotification *)notification;
- (void)sendEvent: (NSEvent *)theEvent;
- (void)showPreferencesWindow: (id)sender;
- (BOOL) openFile: (NSString *)fileName;
=== modified file 'src/nsterm.m'
--- a/src/nsterm.m 2014-04-04 16:32:24 +0000
+++ b/src/nsterm.m 2014-07-20 13:18:47 +0000
@@ -4668,9 +4668,30 @@
((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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 r117389: * macfont.h (macfont_update_antialias_threshold): Declare.,
Jan D. <=