diff options
| author | Dmitry Antipov | 2013-08-01 20:09:20 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-01 20:09:20 +0400 |
| commit | 6c1a09ba9a801021002d75425345e51cdc498026 (patch) | |
| tree | f0463ab9df8cd5d4d22a2452ee2afacefb30bab7 /src | |
| parent | f8c2020882a9f78423d9918f1154655c23859530 (diff) | |
| download | emacs-6c1a09ba9a801021002d75425345e51cdc498026.tar.gz emacs-6c1a09ba9a801021002d75425345e51cdc498026.zip | |
Fix last font-related change.
* w32font.h (w32font_list_internal, w32font_match_internal):
Fix prototype.
* w32uniscribe.c (uniscribe_list, uniscribe_match):
(uniscribe_list_family): Adjust to match font API change.
MS-Windows breakage reported by Juanma Barranquero <lekktu@gmail.com>
at http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00006.html.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/w32font.h | 4 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 11 |
3 files changed, 17 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 95ece0f8970..abc54196eb0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2013-08-01 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-08-01 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | Fix last font-related change. | ||
| 4 | * w32font.h (w32font_list_internal, w32font_match_internal): | ||
| 5 | Fix prototype. | ||
| 6 | * w32uniscribe.c (uniscribe_list, uniscribe_match): | ||
| 7 | (uniscribe_list_family): Adjust to match font API change. | ||
| 8 | MS-Windows breakage reported by Juanma Barranquero <lekktu@gmail.com> | ||
| 9 | at http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00006.html. | ||
| 10 | |||
| 11 | 2013-08-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12 | |||
| 3 | * frame.h (FRAME_MOUSE_UPDATE): | 13 | * frame.h (FRAME_MOUSE_UPDATE): |
| 4 | * nsterm.m (ns_frame_up_to_date): Omit redundant check | 14 | * nsterm.m (ns_frame_up_to_date): Omit redundant check |
| 5 | whether hlinfo->mouse_face_mouse_frame is non-NULL. | 15 | whether hlinfo->mouse_face_mouse_frame is non-NULL. |
diff --git a/src/w32font.h b/src/w32font.h index b4345478a22..a195749bbe8 100644 --- a/src/w32font.h +++ b/src/w32font.h | |||
| @@ -64,10 +64,10 @@ struct w32font_info | |||
| 64 | #define CACHE_BLOCKSIZE 128 | 64 | #define CACHE_BLOCKSIZE 128 |
| 65 | 65 | ||
| 66 | Lisp_Object w32font_get_cache (FRAME_PTR fe); | 66 | Lisp_Object w32font_get_cache (FRAME_PTR fe); |
| 67 | Lisp_Object w32font_list_internal (Lisp_Object frame, | 67 | Lisp_Object w32font_list_internal (struct frame *f, |
| 68 | Lisp_Object font_spec, | 68 | Lisp_Object font_spec, |
| 69 | int opentype_only); | 69 | int opentype_only); |
| 70 | Lisp_Object w32font_match_internal (Lisp_Object frame, | 70 | Lisp_Object w32font_match_internal (struct frame *f, |
| 71 | Lisp_Object font_spec, | 71 | Lisp_Object font_spec, |
| 72 | int opentype_only); | 72 | int opentype_only); |
| 73 | int w32font_open_internal (FRAME_PTR f, Lisp_Object font_entity, | 73 | int w32font_open_internal (FRAME_PTR f, Lisp_Object font_entity, |
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index c153c8f3565..cff8885de7f 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -69,28 +69,27 @@ memq_no_quit (Lisp_Object elt, Lisp_Object list) | |||
| 69 | 69 | ||
| 70 | /* Font backend interface implementation. */ | 70 | /* Font backend interface implementation. */ |
| 71 | static Lisp_Object | 71 | static Lisp_Object |
| 72 | uniscribe_list (Lisp_Object frame, Lisp_Object font_spec) | 72 | uniscribe_list (struct frame *f, Lisp_Object font_spec) |
| 73 | { | 73 | { |
| 74 | Lisp_Object fonts = w32font_list_internal (frame, font_spec, 1); | 74 | Lisp_Object fonts = w32font_list_internal (f, font_spec, 1); |
| 75 | FONT_ADD_LOG ("uniscribe-list", font_spec, fonts); | 75 | FONT_ADD_LOG ("uniscribe-list", font_spec, fonts); |
| 76 | return fonts; | 76 | return fonts; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | static Lisp_Object | 79 | static Lisp_Object |
| 80 | uniscribe_match (Lisp_Object frame, Lisp_Object font_spec) | 80 | uniscribe_match (struct frame *f, Lisp_Object font_spec) |
| 81 | { | 81 | { |
| 82 | Lisp_Object entity = w32font_match_internal (frame, font_spec, 1); | 82 | Lisp_Object entity = w32font_match_internal (f, font_spec, 1); |
| 83 | FONT_ADD_LOG ("uniscribe-match", font_spec, entity); | 83 | FONT_ADD_LOG ("uniscribe-match", font_spec, entity); |
| 84 | return entity; | 84 | return entity; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | static Lisp_Object | 87 | static Lisp_Object |
| 88 | uniscribe_list_family (Lisp_Object frame) | 88 | uniscribe_list_family (struct frame *f) |
| 89 | { | 89 | { |
| 90 | Lisp_Object list = Qnil; | 90 | Lisp_Object list = Qnil; |
| 91 | LOGFONT font_match_pattern; | 91 | LOGFONT font_match_pattern; |
| 92 | HDC dc; | 92 | HDC dc; |
| 93 | FRAME_PTR f = XFRAME (frame); | ||
| 94 | 93 | ||
| 95 | memset (&font_match_pattern, 0, sizeof (font_match_pattern)); | 94 | memset (&font_match_pattern, 0, sizeof (font_match_pattern)); |
| 96 | /* Limit enumerated fonts to outline fonts to save time. */ | 95 | /* Limit enumerated fonts to outline fonts to save time. */ |