From aec4e8489f223201d02d5b80c56cc5bab641169d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Fri, 21 Oct 2005 16:49:48 +0000 Subject: [PATCH] fix tandy put pixel with high attribute bit set (Kings Quest tandy booter) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2351 --- src/ints/int10_put_pixel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ints/int10_put_pixel.cpp b/src/ints/int10_put_pixel.cpp index a1ead666..241d8d35 100644 --- a/src/ints/int10_put_pixel.cpp +++ b/src/ints/int10_put_pixel.cpp @@ -65,7 +65,7 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) { Bitu ind = 1-(x & 0x1); if (color & 0x80) { - p[ind]^=color; + p[ind]^=(color & 0x7f); } else { p[ind]=color; }