From 25a810fbd5b19a58647cf3aa327059a8dcd846a9 Mon Sep 17 00:00:00 2001 From: Joseph Pranevich Date: Fri, 25 Dec 1998 08:50:06 +0000 Subject: [PATCH] Hook into the (stubbed) resize code in msdos int10. --- msdos/int10.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/msdos/int10.c b/msdos/int10.c index 8fbaeec97e9..9a870af7dd6 100644 --- a/msdos/int10.c +++ b/msdos/int10.c @@ -62,15 +62,25 @@ void WINAPI INT_Int10Handler( CONTEXT *context ) 0x07 - 80x25 */ + /* We may or may not want to do a refresh between the resize and + the clear... */ + switch (AL_reg(context)) { - case 0x00: + case 0x00: /* 40x25 */ case 0x01: + VGA_Exit(); + TRACE(int10, "Set Video Mode - Set to Text - 0x0%x\n", + AL_reg(context)); + CONSOLE_ResizeScreen(40, 25); + CONSOLE_ClearScreen(); + break; case 0x02: case 0x03: case 0x07: VGA_Exit(); TRACE(int10, "Set Video Mode - Set to Text - 0x0%x\n", AL_reg(context)); + CONSOLE_ResizeScreen(80, 25); CONSOLE_ClearScreen(); break; case 0x13: