From 3cfb179357620378e441582439f58382fbcf1e7f Mon Sep 17 00:00:00 2001 From: Sour Date: Sun, 7 Apr 2019 08:13:13 -0400 Subject: [PATCH] MMC5: Fixed fill mode attribute color information --- Core/MMC5.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/MMC5.h b/Core/MMC5.h index 30358373..1a390a2c 100644 --- a/Core/MMC5.h +++ b/Core/MMC5.h @@ -295,7 +295,8 @@ private: void SetFillModeColor(uint8_t color) { _fillModeColor = color; - memset(GetNametable(NtFillModeIndex) + 32 * 30, color, 64); //Attribute table is 64 bytes + uint8_t attributeByte = color | color << 2 | color << 4 | color << 6; + memset(GetNametable(NtFillModeIndex) + 32 * 30, attributeByte, 64); //Attribute table is 64 bytes } bool IsSpriteFetch()