aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorKenichi Handa2003-09-08 11:56:09 +0000
committerKenichi Handa2003-09-08 11:56:09 +0000
commit463f5630a5e7cbe7f042bc1175d1fa1c4e98860f (patch)
tree3287d0c628fea2249abf4635b3a4f45bedd6f8c4 /src/w32term.c
parent4256310de631bd57c78b88b5131caa073315b3d7 (diff)
downloademacs-463f5630a5e7cbe7f042bc1175d1fa1c4e98860f.tar.gz
emacs-463f5630a5e7cbe7f042bc1175d1fa1c4e98860f.zip
New directory
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 27f221d06ca..539df459402 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -895,17 +895,7 @@ 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 898 xassert (font_type != UNKNOWN_FONT);
899 /* TODO: This function is currently called through the RIF, and in
900 some cases font_type is UNKNOWN_FONT. We currently allow the
901 cached metrics to be used, which seems to work, but in cases
902 where font_type is UNKNOWN_FONT, we probably haven't encoded
903 char2b appropriately. All callers need checking to see what they
904 are passing. This is most likely to affect variable width fonts
905 outside the Latin-1 range, particularly in languages like Thai
906 that rely on rbearing and lbearing to provide composition. I
907 don't think that is working currently anyway, but we don't seem
908 to have anyone testing such languages on Windows. */
909 899
910 /* Handle the common cases quickly. */ 900 /* Handle the common cases quickly. */
911 if (!font->bdf && font->per_char == NULL) 901 if (!font->bdf && font->per_char == NULL)
@@ -914,8 +904,6 @@ w32_per_char_metric (font, char2b, font_type)
914 else if (!font->bdf && *char2b < 128) 904 else if (!font->bdf && *char2b < 128)
915 return &font->per_char[*char2b]; 905 return &font->per_char[*char2b];
916 906
917 xassert (font_type != UNKNOWN_FONT);
918
919 pcm = &font->scratch; 907 pcm = &font->scratch;
920 908
921 if (font_type == BDF_1D_FONT) 909 if (font_type == BDF_1D_FONT)
@@ -4790,7 +4778,7 @@ w32_read_socket (sd, bufp, numchars, expected)
4790 if (msg.msg.message == msh_mousewheel) 4778 if (msg.msg.message == msh_mousewheel)
4791 { 4779 {
4792 /* Forward MSH_MOUSEWHEEL as WM_MOUSEWHEEL. */ 4780 /* Forward MSH_MOUSEWHEEL as WM_MOUSEWHEEL. */
4793 msg.msg.message = WM_MOUSEWHEEL; 4781 msg.msg.message == WM_MOUSEWHEEL;
4794 prepend_msg (&msg); 4782 prepend_msg (&msg);
4795 } 4783 }
4796 break; 4784 break;
@@ -6559,6 +6547,3 @@ the cursor have no effect. */);
6559 staticpro (&last_mouse_motion_frame); 6547 staticpro (&last_mouse_motion_frame);
6560 last_mouse_motion_frame = Qnil; 6548 last_mouse_motion_frame = Qnil;
6561} 6549}
6562
6563/* arch-tag: 5fa70624-ab86-499c-8a85-473958ee4646
6564 (do not change this comment) */