1
0
Fork 0

adjust cga machine htotal/vtotal (thanks to MobyGamer and reenigne!)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2756
This commit is contained in:
Sebastian Strohhäcker 2007-01-12 18:31:11 +00:00
parent f7f853ddf7
commit 89d0cd5778

View file

@ -609,10 +609,10 @@ void VGA_SetupDrawing(Bitu val) {
vga.draw.double_scan=(vga.crtc.maximum_scan_line&0x80)>0;
} else {
vga.draw.address_line_total=vga.other.max_scanline+1;
htotal=vga.other.htotal;
htotal=vga.other.htotal+1;
hdispend=vga.other.hdend;
hrstart=vga.other.hsyncp;
vtotal=vga.draw.address_line_total*vga.other.vtotal+vga.other.vadjust;
vtotal=vga.draw.address_line_total*(vga.other.vtotal+1)+vga.other.vadjust;
vdispend=vga.draw.address_line_total*vga.other.vdend;
vrstart=vga.draw.address_line_total*vga.other.vsyncp;
vga.draw.double_scan=false;