From a93af9fe8568d39b5e3a732e035151ef94fae634 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Wed, 6 Apr 2016 09:18:05 -0700 Subject: [PATCH] vgaGetMode/vgaSetMode just call DOSLIB int10 mode functions. --- src/lib/modex16.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 5c0cab2c..2cce79ff 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -62,11 +62,7 @@ void VGAmodeX(sword vq, boolean cmem, global_game_variables_t *gv) static void vgaSetMode(byte mode) { - union REGS regs; - - regs.h.ah = SET_MODE; - regs.h.al = mode; - int86(VIDEO_INT, ®s, ®s); + int10_setmode(mode); } //--------------------------------------------------- @@ -74,15 +70,10 @@ vgaSetMode(byte mode) // Use the bios to get the current video mode // -long +long/*FIXME: why long? "long" is 32-bit datatype, VGA modes are 8-bit numbers. */ vgaGetMode() { - union REGS rg; - - rg.h.ah = 0x0f; - int86(VIDEO_INT, &rg, &rg); - - return rg.h.al; + return int10_getmode(); } /* -========================= Entry Points ==========================- */ -- 2.39.5