diff options
| author | Po Lu | 2024-08-13 09:12:30 +0800 |
|---|---|---|
| committer | Po Lu | 2024-08-13 09:12:30 +0800 |
| commit | 6533fd65b6f187af5fe7202fc4ab344cc3df4cb1 (patch) | |
| tree | d380d3f3d899cf69ca4008e351b8239c196c6eb9 /src | |
| parent | cd66b848128a4cc4dbb1958d23ed023c9fad69ef (diff) | |
| parent | b585826a65ebfb58d3fe4744f0f8f9b5f3fc08cc (diff) | |
| download | emacs-6533fd65b6f187af5fe7202fc4ab344cc3df4cb1.tar.gz emacs-6533fd65b6f187af5fe7202fc4ab344cc3df4cb1.zip | |
Merge from savannah/emacs-30
b585826a65e ; * lisp/files.el (require-with-check): Fix doc string an...
6d55e94996e macOS: Wrong frame rectangle after wake (bug#71912)
c49724b9649 ; Grammar fixes
5c3d340e001 Fix format 2 cmap handling in sfnt.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 1 | ||||
| -rw-r--r-- | src/sfnt.c | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 473a5e705e9..8c405738467 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -7968,6 +7968,7 @@ ns_in_echo_area (void) | |||
| 7968 | dpyinfo->ns_focus_frame = emacsframe; | 7968 | dpyinfo->ns_focus_frame = emacsframe; |
| 7969 | 7969 | ||
| 7970 | ns_frame_rehighlight (emacsframe); | 7970 | ns_frame_rehighlight (emacsframe); |
| 7971 | [self adjustEmacsFrameRect]; | ||
| 7971 | 7972 | ||
| 7972 | event.kind = FOCUS_IN_EVENT; | 7973 | event.kind = FOCUS_IN_EVENT; |
| 7973 | XSETFRAME (event.frame_or_window, emacsframe); | 7974 | XSETFRAME (event.frame_or_window, emacsframe); |
diff --git a/src/sfnt.c b/src/sfnt.c index b235c795ef7..1ed492b7506 100644 --- a/src/sfnt.c +++ b/src/sfnt.c | |||
| @@ -1093,10 +1093,10 @@ sfnt_lookup_glyph_2 (sfnt_char character, | |||
| 1093 | unsigned char *slice; | 1093 | unsigned char *slice; |
| 1094 | uint16_t glyph; | 1094 | uint16_t glyph; |
| 1095 | 1095 | ||
| 1096 | if (character > 65335) | 1096 | if (character > 65535) |
| 1097 | return 0; | 1097 | return 0; |
| 1098 | 1098 | ||
| 1099 | i = character >> 16; | 1099 | i = character >> 8; |
| 1100 | j = character & 0xff; | 1100 | j = character & 0xff; |
| 1101 | k = format2->sub_header_keys[i] / 8; | 1101 | k = format2->sub_header_keys[i] / 8; |
| 1102 | 1102 | ||
| @@ -1129,9 +1129,9 @@ sfnt_lookup_glyph_2 (sfnt_char character, | |||
| 1129 | return 0; | 1129 | return 0; |
| 1130 | } | 1130 | } |
| 1131 | 1131 | ||
| 1132 | /* k is 0, so glyph_index_array[i] is the glyph. */ | 1132 | /* k is 0, so glyph_index_array[j] is the glyph. */ |
| 1133 | return (i < format2->num_glyphs | 1133 | return (j < format2->num_glyphs |
| 1134 | ? format2->glyph_index_array[i] | 1134 | ? format2->glyph_index_array[j] |
| 1135 | : 0); | 1135 | : 0); |
| 1136 | } | 1136 | } |
| 1137 | 1137 | ||