1
0
Fork 0

Fix line compare to always be 1023 for vga mode

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1466
This commit is contained in:
Sjoerd van der Berg 2003-11-27 09:20:26 +00:00
parent 2ef1879ac5
commit b0d9929ed3

View file

@ -279,7 +279,7 @@ foundmode:
/* Vertical Retrace End */
IO_Write(crtc_base,0x16);IO_Write(crtc_base+1,(CurMode->vtotal-8));
/* Line Compare */
Bitu line_compare=CurMode->vtotal+1; //Out of range
Bitu line_compare=(mode>=256) ? 2047 : 1023;
IO_Write(crtc_base,0x18);IO_Write(crtc_base+1,line_compare&0xff);
overflow|=(line_compare & 0x100) >> 4;
max_scanline|=(line_compare & 0x200) >> 3;