From 2bc9299c3b917a0719b72f7c573f99e080c7e962 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 28 Oct 2002 14:38:23 +0000 Subject: [PATCH] Fixed attribtes to only use the lower 6 bits. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@456 --- src/hardware/vga_attr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/vga_attr.cpp b/src/hardware/vga_attr.cpp index 3d4c6b9d..953b4521 100644 --- a/src/hardware/vga_attr.cpp +++ b/src/hardware/vga_attr.cpp @@ -40,6 +40,7 @@ void write_p3c0(Bit32u port,Bit8u val) { case 0x04: case 0x05: case 0x06: case 0x07: case 0x08: case 0x09: case 0x0a: case 0x0b: case 0x0c: case 0x0d: case 0x0e: case 0x0f: + val&=0x3f; attr(palette[attr(index)])=val; VGA_DAC_CombineColor(attr(index),val); /*