aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes2001-10-17 17:48:44 +0000
committerAndrew Innes2001-10-17 17:48:44 +0000
commit0e804d381c40da55c61107dfeda336936e4ac845 (patch)
tree79f2167d7f20bbf81f93e4afe27893e842945caf
parent19c291d324bd521b35f4cb0c9082bf730bd77fd6 (diff)
downloademacs-0e804d381c40da55c61107dfeda336936e4ac845.tar.gz
emacs-0e804d381c40da55c61107dfeda336936e4ac845.zip
(w32_encode_char): Get cached codepage from font_info,
rather than working it out by calling w32_codepage_for_font for every glyph.
-rw-r--r--src/ChangeLog11
-rw-r--r--src/w32term.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e27fbf47666..d5fc0aca0b7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,16 @@
12001-10-17 Andrew Innes <andrewi@gnu.org> 12001-10-17 Andrew Innes <andrewi@gnu.org>
2 2
3 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
4
5 * w32fns.c (w32_load_system_font): Cache codepage for font, in
6 font_info.charset field.
7
8 * w32term.c (w32_encode_char): Get cached codepage from font_info,
9 rather than working it out by calling w32_codepage_for_font for
10 every glyph.
11
122001-10-17 Andrew Innes <andrewi@gnu.org>
13
3 * w32term.c (w32_read_socket): Determine clipping rectangle for 14 * w32term.c (w32_read_socket): Determine clipping rectangle for
4 the entire frame, including areas covered by scrollbars and the 15 the entire frame, including areas covered by scrollbars and the
5 menubar. This avoids internal arguments about whether a frame is 16 menubar. This avoids internal arguments about whether a frame is
diff --git a/src/w32term.c b/src/w32term.c
index 0425ed44577..c8afc114ef1 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1438,7 +1438,7 @@ w32_encode_char (c, char2b, font_info, two_byte_p)
1438 *char2b = BUILD_WCHAR_T (sjis1, sjis2); 1438 *char2b = BUILD_WCHAR_T (sjis1, sjis2);
1439 } 1439 }
1440 } 1440 }
1441 codepage = w32_codepage_for_font (font_info->name); 1441 codepage = font_info->codepage;
1442 1442
1443 /* If charset is not ASCII or Latin-1, may need to move it into 1443 /* If charset is not ASCII or Latin-1, may need to move it into
1444 Unicode space. */ 1444 Unicode space. */