commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 11/13: Fix setting LGE flag


From: Samuel Thibault
Subject: [hurd] 11/13: Fix setting LGE flag
Date: Wed, 26 Mar 2014 12:12:15 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 17126af519bf8e43ecef76c4ebd7f205c4c4daa8
Author: Samuel Thibault <address@hidden>
Date:   Wed Mar 26 04:05:27 2014 +0100

    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(-)

diff --git a/console-client/vga-support.c b/console-client/vga-support.c
index 04926f9..e8497f8 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.  */

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]