mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
byte-swap. (screen_read_char): Likewise. (grub_vga_text_cls): Likewise.
This commit is contained in:
1 parent
c21b17e6e0
commit
5e3535aee7
2 files changed
+10
-3
No files matched your search
@@ -42,13 +42,13 @@ static int grub_curr_x, grub_curr_y;
|
||||
static void
|
||||
screen_write_char (int x, int y, short c)
|
||||
{
|
||||
VGA_TEXT_SCREEN[y * COLS + x] = c;
|
||||
VGA_TEXT_SCREEN[y * COLS + x] = grub_cpu_to_le16 (c);
|
||||
}
|
||||
|
||||
static short
|
||||
screen_read_char (int x, int y)
|
||||
{
|
||||
return VGA_TEXT_SCREEN[y * COLS + x];
|
||||
return grub_le_to_cpu16 (VGA_TEXT_SCREEN[y * COLS + x]);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -130,7 +130,7 @@ grub_vga_text_cls (struct grub_term_output *term)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < ROWS * COLS; i++)
|
||||
VGA_TEXT_SCREEN[i] = ' ' | (grub_console_cur_color << 8);
|
||||
VGA_TEXT_SCREEN[i] = grub_cpu_to_le16 (' ' | (grub_console_cur_color << 8));
|
||||
grub_vga_text_gotoxy (term, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user