From 2fd4a55d07f0f6fda2e2d23ab7a104510b71717e Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 16 May 2002 20:27:54 +0000 Subject: [PATCH] Handle properly the requested video mode in Int10h SET VIDEO MODE function by managing the bit 7 of AL. --- dlls/winedos/int10.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/winedos/int10.c b/dlls/winedos/int10.c index 151d8476f13..a70fe7804c6 100644 --- a/dlls/winedos/int10.c +++ b/dlls/winedos/int10.c @@ -306,6 +306,16 @@ void WINAPI DOSVM_Int10Handler( CONTEXT86 *context ) 0x07 - 80x25 */ + /* Bit 7 of AH = 0 -> Clean the video memory + 1 -> Don't clean it + */ + if (!(AL_reg(context)&0x80)) { + /* FIXME: Do something which cleans the video memory */ + } + + /* FIXME: Should we keep the bit 7 in the Bios Data memory? */ + AL_reg(context) &= ~0x80; + switch (AL_reg(context)) { case 0x00: /* 40x25 */ case 0x01: