From fb6045aef14ca17865204c6a1a31a6659eba9a36 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 22 Nov 2003 17:03:49 +0000 Subject: [PATCH] Fix loading a new font always setting vga range to b800-bffff, should fix monochromo text mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1459 --- src/ints/int10_memory.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ints/int10_memory.cpp b/src/ints/int10_memory.cpp index 7d42c366..e0358ae3 100644 --- a/src/ints/int10_memory.cpp +++ b/src/ints/int10_memory.cpp @@ -47,15 +47,17 @@ static Bit16u map_offset[8]={ void INT10_LoadFont(PhysPt font,bool reload,Bitu count,Bitu offset,Bitu map,Bitu height) { PhysPt where=PhysMake(0xa000,map_offset[map & 0x7]+offset*32); IO_Write(0x3c4,0x2);IO_Write(0x3c5,0x4); //Enable plane 2 - IO_Write(0x3ce,0x6);IO_Write(0x3cf,0x0); //Disable odd/even and a0000 adressing + IO_Write(0x3ce,0x6);Bitu old_6=IO_Read(0x3cf); + IO_Write(0x3cf,0x0); //Disable odd/even and a0000 adressing for (Bitu i=0;i