summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2001-10-18 12:39:30 +0000
committerAndrew Innes <andrewi@gnu.org>2001-10-18 12:39:30 +0000
commit547960d6a40ff6eec7acd01a3cf6c5ba2417802a (patch)
tree65903baba567024a166c5fbdca33eb7815cfb450
parent860294ca79f205a1578793ccb51ccd6cad7e36f4 (diff)
downloademacs-547960d6a40ff6eec7acd01a3cf6c5ba2417802a.tar.gz
(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/w32term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index e8af4c53e3e..94dee64ad1d 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1444,7 +1444,7 @@ w32_encode_char (c, char2b, font_info, two_byte_p)
*char2b = BUILD_WCHAR_T (sjis1, sjis2);
}
}
- codepage = w32_codepage_for_font (font_info->name);
+ codepage = font_info->codepage;
/* If charset is not ASCII or Latin-1, may need to move it into
Unicode space. */