]> xenbits.xensource.com Git - seabios.git/commitdiff
vgabios: Remove special case of dh==0xff in handle_1013()
authorKevin O'Connor <kevin@koconnor.net>
Mon, 4 Jul 2016 16:20:48 +0000 (12:20 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 4 Jul 2016 16:20:48 +0000 (12:20 -0400)
The original "lgpl vgabios" had a special case for dh==0xff in its
int1013 (write string) code.  There does not appear to be any VGABIOS
documentation supporting this as an externally available feature.  It
appears this was for its own internal use when writing its strings to
the screen.  SeaVGABIOS doesn't use this hack; this patch removes it
from the code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
vgasrc/vgabios.c

index f07e85bd339b5ab37912f3e06c37f6fa06ba40e7..8b50192174b88b71aab5a0201c10a65f3aa23734 100644 (file)
@@ -1030,13 +1030,7 @@ handle_1012(struct bregs *regs)
 static void noinline
 handle_1013(struct bregs *regs)
 {
-    struct cursorpos cp;
-    if (regs->dh == 0xff)
-        // if row=0xff special case : use current cursor position
-        cp = get_cursor_pos(regs->bh);
-    else
-        cp = (struct cursorpos) {regs->dl, regs->dh, regs->bh};
-
+    struct cursorpos cp = {regs->dl, regs->dh, regs->bh};
     u16 count = regs->cx;
     u8 *offset_far = (void*)(regs->bp + 0);
     u8 attr = regs->bl;