1
0
Fork 0

fully clear display start on graphics mode switches (duke3d vesa exit)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2738
This commit is contained in:
Sebastian Strohhäcker 2007-01-08 21:58:37 +00:00
parent fbd74e52d3
commit aad5eb3e23

View file

@ -681,6 +681,9 @@ bool INT10_SetVideoMode(Bitu mode) {
/* This register actually has more bits but only use the extended offset ones */
IO_Write(crtc_base,0x51);
IO_Write(crtc_base + 1,(offset & 0x300) >> 4);
/* Clear remaining bits of the display start */
IO_Write(crtc_base,0x69);
IO_Write(crtc_base + 1,0);
/* Extended Vertical Overflow */
IO_Write(crtc_base,0x5e);IO_Write(crtc_base+1,ver_overflow);