PATCH: Fix Int10h SET VIDEO MODE function
Christian Costa
titan.costa at wanadoo.fr
Thu May 16 14:15:24 CDT 2002
This patch helps the few DOS apps that complain about unknown video
mode.
Changelog:
Handle properly the requested video mode in Int10h SET VIDEO MODE
function
by managing the bit 7 of AL.
Modified files: dlls/winedos/int10.c
Christian Costa titan.costa at wanadoo.fr
-------------- next part --------------
Index: int10.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/int10.c,v
retrieving revision 1.10
diff -u -r1.10 int10.c
--- int10.c 14 May 2002 03:57:26 -0000 1.10
+++ int10.c 16 May 2002 18:53:25 -0000
@@ -306,6 +306,16 @@
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:
More information about the wine-patches
mailing list