From 44aa1939006cce3fe3df1062da76b332b81e5838 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 22 Jun 2004 22:38:29 +0000 Subject: [PATCH] change line compare to always be 1023 for any low res mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1855 --- src/ints/int10_modes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index b8aa3cd1..2ef66b04 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -445,7 +445,7 @@ bool INT10_SetVideoMode(Bitu mode) { /* Vertical Retrace End */ IO_Write(crtc_base,0x16);IO_Write(crtc_base+1,(CurMode->vtotal-8)); /* Line Compare */ - Bitu line_compare=(mode>=256) ? 2047 : 1023; + Bitu line_compare=(CurMode->vtotal < 1024) ? 1023 : 2047; IO_Write(crtc_base,0x18);IO_Write(crtc_base+1,line_compare&0xff); overflow|=(line_compare & 0x100) >> 4; max_scanline|=(line_compare & 0x200) >> 3;