From c04d292c8eca4d5718c83dd4ed9b04f870fb920b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 5 Feb 2023 22:53:08 -0500 Subject: [PATCH] Make this more obviously correct, albeit arbitrarily. Comparing just a single bit would do. --- Components/9918/Implementation/YamahaCommands.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/9918/Implementation/YamahaCommands.hpp b/Components/9918/Implementation/YamahaCommands.hpp index 0f4b15e87..3783f6c6d 100644 --- a/Components/9918/Implementation/YamahaCommands.hpp +++ b/Components/9918/Implementation/YamahaCommands.hpp @@ -55,7 +55,7 @@ struct Colour { } bool has_value() const { - return (colour & 0x3) == (colour4bpp & 0x3); + return (colour & 0xf) == (colour4bpp & 0xf); } /// Colour as written by the CPU.