From: Jonathan Campbell Date: Wed, 6 Apr 2016 16:18:05 +0000 (-0700) Subject: vgaGetMode/vgaSetMode just call DOSLIB int10 mode functions. X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=a93af9fe8568d39b5e3a732e035151ef94fae634;p=16.git vgaGetMode/vgaSetMode just call DOSLIB int10 mode functions. --- 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 ==========================- */