Skip to content

Commit

Permalink
MEGA65: Upper 4 bits fgcolor NCM fix #329
Browse files Browse the repository at this point in the history
* Respecting palette(16) pointer in case fgcolor is selected
  • Loading branch information
ki-bo authored and lgblgblgb committed Mar 22, 2022
1 parent 87f7c37 commit 19a80f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion targets/mega65/vic4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ static XEMU_INLINE void vic4_render_char_raster ( void )
main_ram + (((char_id * 64) + ((sel_char_row + char_fetch_offset) * 8)) & 0x7FFFF),
16 - glyph_trim,
used_palette[char_bgcolor], // bg SDL colour
used_palette[char_fgcolor], // fg SDL colour
(used_palette + (color_data & 0xF0))[char_fgcolor], // fg SDL colour
used_palette + (color_data & 0xF0), // palette(16) pointer
SXA_HORIZONTAL_FLIP(color_data) // hflip?
);
Expand Down

1 comment on commit 19a80f2

@lgblgblgb
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confusingly it's meant for #328 #329 and was PR #330 :)

Please sign in to comment.