Hook into the (stubbed) resize code in msdos int10.

This commit is contained in:
Joseph Pranevich 1998-12-25 08:50:06 +00:00 committed by Alexandre Julliard
parent 06591f671f
commit 25a810fbd5
1 changed files with 11 additions and 1 deletions

View File

@ -62,15 +62,25 @@ void WINAPI INT_Int10Handler( CONTEXT *context )
0x07 - 80x25 0x07 - 80x25
*/ */
/* We may or may not want to do a refresh between the resize and
the clear... */
switch (AL_reg(context)) { switch (AL_reg(context)) {
case 0x00: case 0x00: /* 40x25 */
case 0x01: 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 0x02:
case 0x03: case 0x03:
case 0x07: case 0x07:
VGA_Exit(); VGA_Exit();
TRACE(int10, "Set Video Mode - Set to Text - 0x0%x\n", TRACE(int10, "Set Video Mode - Set to Text - 0x0%x\n",
AL_reg(context)); AL_reg(context));
CONSOLE_ResizeScreen(80, 25);
CONSOLE_ClearScreen(); CONSOLE_ClearScreen();
break; break;
case 0x13: case 0x13: