change VGA refresh io port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

better toggle all relevant bits in VGA crt register,
RAM access bit (Turbo Pascal 6 queries it on startup) and lightpen bit and
VGA refresh bit, not only VGA refresh.

Needless to say, this makes Turbo Pascal 6 work
(well, sort of: opening a file doesn't seem to work)

-- 
Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
Determining best CVS host...
Using CVSROOT :pserver:cvs@rhlx01.fht-esslingen.de:/home/wine
Index: dlls/winedos/vga.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/vga.c,v
retrieving revision 1.15
diff -u -r1.15 vga.c
--- dlls/winedos/vga.c	1 Jul 2002 18:13:52 -0000	1.15
+++ dlls/winedos/vga.c	1 Jul 2002 22:22:13 -0000
@@ -796,7 +796,7 @@
         case 0x3da:
             /* since we don't (yet?) serve DOS VM requests while VGA_Poll is running,
                we need to fake the occurrence of the vertical refresh */
-            ret=vga_refresh?0x00:0x08;
+            ret=vga_refresh?0x00:0x0b; /* toggle video RAM and lightpen and VGA refresh bits ! */
             if (vga_mode_initialized)
                 vga_refresh=0;
             else

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux