From 4acb824303a61ec93ea283248140bcbda4b3742a Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 7 Mar 2004 10:30:15 +0000 Subject: [PATCH] Fix filling of rows in tandy 16 color mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1706 --- src/ints/int10_char.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ints/int10_char.cpp b/src/ints/int10_char.cpp index 3008a131..a5ff6f1f 100644 --- a/src/ints/int10_char.cpp +++ b/src/ints/int10_char.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: int10_char.cpp,v 1.25 2004-03-07 08:16:20 harekiet Exp $ */ +/* $Id: int10_char.cpp,v 1.26 2004-03-07 10:30:15 harekiet Exp $ */ /* Character displaying moving functions */ @@ -138,7 +138,7 @@ static INLINE void CGA4_FillRow(Bit8u cleft,Bit8u cright,Bit8u row,PhysPt base,B static INLINE void TANDY16_FillRow(Bit8u cleft,Bit8u cright,Bit8u row,PhysPt base,Bit8u attr) { Bit8u cheight = real_readb(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT); - PhysPt dest=base+((CurMode->twidth*row)*cheight+cleft)*4; + PhysPt dest=base+((CurMode->twidth*row)*(cheight/4)+cleft)*4; Bitu copy=(cright-cleft)*4;Bitu nextline=CurMode->twidth*4; attr=(attr & 0xf) | (attr & 0xf) << 4; for (Bitu i=0;i