1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Also use output level for CRAM dots.

This commit is contained in:
Thomas Harte 2023-12-07 11:05:10 -05:00
parent fc63fcb751
commit 017fd84f36

View File

@ -667,14 +667,9 @@ void Base<personality>::output_border(int cycles, [[maybe_unused]] uint32_t cram
border_colour = Storage<personality>::colour_ram_[16 + background_colour_];
if(cram_dot) {
uint32_t *const pixel_target = reinterpret_cast<uint32_t *>(crt_.begin_data(1));
if(pixel_target) {
*pixel_target = border_colour | cram_dot;
}
// Four CRT cycles is one pixel width, so this doesn't need clock conversion.
// TODO: on the Mega Drive it may be only 3 colour cycles, depending on mode.
crt_.output_level(4);
crt_.output_level<uint32_t>(4, border_colour | cram_dot);
cycles -= 4;
}
} else {