summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-client/vga-support.c4
1 files changed, 2 insertions, 2 deletions
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. */