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:
parent
b9ce8cc2d7
commit
81788a2b59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user