summaryrefslogtreecommitdiff
path: root/console-client
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-26 04:05:27 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-26 04:05:27 +0100
commit17126af519bf8e43ecef76c4ebd7f205c4c4daa8 (patch)
treec8191ff89507dbd8754f33a959f70d5dd26091cf /console-client
parentf5fb893ef5db2bf0e70aa0ba108c9d189fea607b (diff)
Fix setting LGE flag
* console-client/vga-support.c (vga_set_font_width): Fix setting the `VGA_ATTR_MODE_LGE' flag.
Diffstat (limited to 'console-client')
-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. */