From 17126af519bf8e43ecef76c4ebd7f205c4c4daa8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 26 Mar 2014 04:05:27 +0100 Subject: Fix setting LGE flag * console-client/vga-support.c (vga_set_font_width): Fix setting the `VGA_ATTR_MODE_LGE' flag. --- console-client/vga-support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'console-client') diff --git a/console-client/vga-support.c b/console-client/vga-support.c index 04926f92..e8497f82 100644 --- a/console-client/vga-support.c +++ b/console-client/vga-support.c @@ -339,9 +339,9 @@ vga_set_font_width (int width) outb (VGA_ATTR_MODE_ADDR, VGA_ATTR_ADDR_DATA_REG); saved = inb (VGA_ATTR_DATA_READ_REG); if (width == 8) - saved |= ~VGA_ATTR_MODE_LGE; + saved &= ~VGA_ATTR_MODE_LGE; else - saved &= VGA_ATTR_MODE_LGE; + saved |= VGA_ATTR_MODE_LGE; outb (saved, VGA_ATTR_ADDR_DATA_REG); /* Re-enable the screen. */ -- cgit v1.2.3