1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Correct deserialisation order.

This commit is contained in:
Thomas Harte 2023-01-26 21:34:56 -05:00
parent 75acbd2d6c
commit 1bf8406e7e

View File

@ -294,9 +294,10 @@ void Base<personality>::draw_yamaha(LineBuffer &buffer, int start, int end) {
// TODO: sprites. And all other graphics modes.
if constexpr (mode == ScreenMode::YamahaGraphics5) {
// TODO: a much smarter loop.
for(int c = start >> 1; c < end >> 1; c++) {
pixel_target_[c] = Storage<personality>::palette_[
(buffer.bitmap[c >> 2] >> ((c & 3) << 1)) & 3
buffer.bitmap[c >> 2] >> ((((c & 3) ^ 3) << 1)) & 3
];
}