Fix SGB attribute and tile transfers on BE platforms, fixes #693

This commit is contained in:
Lior Halphon 2025-03-29 19:12:35 +03:00
parent f1d52c53d3
commit 9359f7a2d9
1 changed files with 3 additions and 1 deletions

View File

@ -640,7 +640,9 @@ void GB_sgb_render(GB_gameboy_t *gb)
for (unsigned x = 0; x < 8; x++) {
*data |= pixel_to_bits[gb->sgb->screen_buffer[(tile_x + x) + (tile_y + y) * 160] & 3] >> x;
}
*data = LE16(*data);
if (gb->sgb->transfer_dest == TRANSFER_PALETTES || gb->sgb->transfer_dest == TRANSFER_BORDER_DATA) {
*data = LE16(*data);
}
data++;
}
}