From 5ec7fe9753e0e6bbf51d695a09393624feffcb5c Mon Sep 17 00:00:00 2001 From: StewBC Date: Thu, 11 Jan 2024 11:52:52 -0800 Subject: [PATCH] Fix for XOR and logical operation --- src/apple2/platA2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apple2/platA2.c b/src/apple2/platA2.c index a5fc04f..c433faa 100644 --- a/src/apple2/platA2.c +++ b/src/apple2/platA2.c @@ -215,7 +215,7 @@ void plat_DrawSquare(char position) if(piece) { rop = blackWhite ? ROP_INV : ROP_CPY; - inv = blackWhite ^ (piece & PIECE_WHITE) != 0; + inv = blackWhite ^ !((piece & PIECE_WHITE) != 0); } else {