From 2e45422b0333587917b44820519cbbedb8e2f1eb Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 20 Feb 2023 22:39:34 -0500 Subject: [PATCH] Make a further attempt at sprite colour. --- Components/9918/Implementation/Fetch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/9918/Implementation/Fetch.hpp b/Components/9918/Implementation/Fetch.hpp index a4c39d6ca..c19c13348 100644 --- a/Components/9918/Implementation/Fetch.hpp +++ b/Components/9918/Implementation/Fetch.hpp @@ -260,7 +260,7 @@ class SpriteFetcher { case SpriteMode::Mode2: { // Fetch colour from the colour table, per this sprite's slot and row. colour = base->ram_[ - base->sprite_attribute_table_address_ & AddressT(~512) & AddressT((tile_buffer.active_sprites[slot].index << 4) | tile_buffer.active_sprites[slot].row) + base->sprite_attribute_table_address_ & AddressT(~512) & bits<7>(AddressT((tile_buffer.active_sprites[slot].index << 4) | tile_buffer.active_sprites[slot].row)) ]; } break; }