From e6be5f493cfb750124f6717e064644c53d1154eb Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 7 Feb 2004 22:23:07 +0000 Subject: [PATCH] Set the black/white bit for cga when setting mode 0x5 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1663 --- src/ints/int10_modes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index 0f17c4e0..a6807919 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -423,6 +423,8 @@ att_text16: real_writeb(BIOSMEM_SEG,BIOSMEM_CURRENT_PAL,0x7); goto skipatt; case M_CGA4: + //Set Bit 2 in black/white mode 0x5 + IO_Write(0x3d8,0xa+(CurMode->mode==0x5) ? 0x4 : 0); IO_Write(0x3d9,0x30); //Setup using CGA color select register real_writeb(BIOSMEM_SEG,BIOSMEM_CURRENT_PAL,0x30); goto skipatt;