From b91b041f3f2008f0fb5e15d3d09ad00d797578f6 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 7 Mar 2004 08:16:20 +0000 Subject: [PATCH] Fix writing characters in 0x13 mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1705 --- src/ints/int10_char.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ints/int10_char.cpp b/src/ints/int10_char.cpp index a834ffdd..3008a131 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.24 2004-03-06 23:18:50 harekiet Exp $ */ +/* $Id: int10_char.cpp,v 1.25 2004-03-07 08:16:20 harekiet Exp $ */ /* Character displaying moving functions */ @@ -404,10 +404,10 @@ static void WriteChar(Bit16u col,Bit16u row,Bit8u page,Bit8u chr,Bit8u attr,bool case M_CGA4: case M_CGA2: case M_TANDY16: - if (chr<128) fontdata=Real2Phys(RealGetVec(0x43))+chr*cheight; //was plain 8 + if (chr<128) fontdata=Real2Phys(RealGetVec(0x43))+chr*cheight; else { chr-=128; - fontdata=Real2Phys(RealGetVec(0x1F))+(chr)*cheight; //was plain 8 + fontdata=Real2Phys(RealGetVec(0x1F))+(chr)*cheight; } break; default: @@ -415,7 +415,7 @@ static void WriteChar(Bit16u col,Bit16u row,Bit8u page,Bit8u chr,Bit8u attr,bool break; } x=8*col; - y=cheight*row; + y=cheight*row;Bit8u xor_mask=(CurMode->type == M_VGA) ? 0x0 : 0x80; //TODO Check for out of bounds for (Bit8u h=0;h>=1; }