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
This commit is contained in:
parent
0a7ec74a34
commit
83237eff91
1 changed files with 5 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue