aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2003-08-31 22:15:15 +0000
committerJason Rumney2003-08-31 22:15:15 +0000
commit4bc2315e9ee39791abb683a4ba4b27e7a69d862a (patch)
tree2a1e677ef8743105379f30aaa44efc0fbe9949e0 /src
parenta24d4cb27a5ef18009ce05dde83d5d6b1b67911d (diff)
downloademacs-4bc2315e9ee39791abb683a4ba4b27e7a69d862a.tar.gz
emacs-4bc2315e9ee39791abb683a4ba4b27e7a69d862a.zip
(w32_per_char_metric): Allow cached metrics to be
returned even when font_type is unknown.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/w32term.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 394a6b17ddb..a3cfba04805 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12003-08-31 Jason Rumney <jasonr@gnu.org> 12003-08-31 Jason Rumney <jasonr@gnu.org>
2 2
3 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4 returned even when font_type is unknown.
5
3 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional. 6 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4 7
52003-08-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 82003-08-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
diff --git a/src/w32term.c b/src/w32term.c
index d98f93e439f..16e0f4667c0 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -895,7 +895,6 @@ w32_per_char_metric (font, char2b, font_type)
895 BOOL retval; 895 BOOL retval;
896 896
897 xassert (font && char2b); 897 xassert (font && char2b);
898 xassert (font_type != UNKNOWN_FONT);
899 898
900 /* Handle the common cases quickly. */ 899 /* Handle the common cases quickly. */
901 if (!font->bdf && font->per_char == NULL) 900 if (!font->bdf && font->per_char == NULL)
@@ -904,6 +903,8 @@ w32_per_char_metric (font, char2b, font_type)
904 else if (!font->bdf && *char2b < 128) 903 else if (!font->bdf && *char2b < 128)
905 return &font->per_char[*char2b]; 904 return &font->per_char[*char2b];
906 905
906 xassert (font_type != UNKNOWN_FONT);
907
907 pcm = &font->scratch; 908 pcm = &font->scratch;
908 909
909 if (font_type == BDF_1D_FONT) 910 if (font_type == BDF_1D_FONT)