aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-07-04 12:20:48 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-07-04 12:20:48 -0400
commite5839eaffcf6ebba9d81f46a385280f7829f15d5 (patch)
treebd8cfe61fe62bc5f62a77b565948ef90f587d4ee /vgasrc
parent20f83d5c7c0f9ae5f775b6701c205349abe003fb (diff)
downloadseabios-e5839eaffcf6ebba9d81f46a385280f7829f15d5.tar.gz
seabios-e5839eaffcf6ebba9d81f46a385280f7829f15d5.tar.xz
seabios-e5839eaffcf6ebba9d81f46a385280f7829f15d5.zip
vgabios: Remove special case of dh==0xff in handle_1013()
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>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vgabios.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
index f07e85b..8b50192 100644
--- a/vgasrc/vgabios.c
+++ b/vgasrc/vgabios.c
@@ -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;