From 97510138d4cbfa7ee7c02342e307e5faf0164831 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 1 Sep 2005 14:31:40 +0000 Subject: [PATCH] Fix inventory in KQ1 cga mode. Caused by setting wrong startaddress in cga mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2295 --- src/ints/int10_char.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ints/int10_char.cpp b/src/ints/int10_char.cpp index 7f2ad71a..3835034f 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.36 2005-08-22 17:52:57 qbix79 Exp $ */ +/* $Id: int10_char.cpp,v 1.37 2005-09-01 14:31:40 qbix79 Exp $ */ /* Character displaying moving functions */ @@ -280,7 +280,7 @@ void INT10_SetActivePage(Bit8u page) { mem_address=page*real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE); /* Write the new page start */ real_writew(BIOSMEM_SEG,BIOSMEM_CURRENT_START,mem_address); - if (CurMode->mode<0x8) mem_address>>=1; + if (machine==MCH_VGA && CurMode->mode<0x8) mem_address>>=1; /* Write the new start address in vgahardware */ Bit16u base=real_readw(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS); IO_Write(base,0x0c);