From 83237eff9142b9126a7cd8d2cdb4224f587eda1a Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 1 Mar 2006 10:59:29 +0000 Subject: [PATCH] Don't change lower palette entries when changing the background/border color in text mode Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2533 --- src/ints/int10_pal.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ints/int10_pal.cpp b/src/ints/int10_pal.cpp index 8026ef9e..62f43985 100644 --- a/src/ints/int10_pal.cpp +++ b/src/ints/int10_pal.cpp @@ -217,6 +217,11 @@ void INT10_SetBackgroundBorder(Bit8u val) { IO_Write(0x3d9,temp); else if (machine == MCH_VGA) { val = ((val << 1) & 0x10) | (val & 0x7); + /* Aways set the overscan color */ + INT10_SetSinglePaletteRegister( 0x11, val ); + /* Don't set any extra colors when in text mode */ + if (CurMode->mode <= 3) + return; INT10_SetSinglePaletteRegister( 0, val ); val = (temp & 0x10) | 2 | ((temp & 0x20) >> 5); INT10_SetSinglePaletteRegister( 1, val );