vt_vga: Give only the character part of term_char_t to vga_get_cp437()

This fixes a bug where vga_get_cp437() was called with an invalid
argument. The screen was then filled with '?' instead of the actual
character.

MFC after:	1 week
This commit is contained in:
dumbbell 2014-08-23 07:02:57 +00:00
parent 5690b644d4
commit c030890407

View File

@ -799,7 +799,7 @@ vga_bitblt_text_txtmode(struct vt_device *vd, const struct vt_window *vw,
* character set used by the VGA hardware by
* default.
*/
ch = vga_get_cp437(c);
ch = vga_get_cp437(TCHAR_CHARACTER(c));
/* Convert colors to VGA attributes. */
attr = bg << 4 | fg;