mirror of https://github.com/LIJI32/SameBoy.git
Fix SGB attribute and tile transfers on BE platforms, fixes #693
This commit is contained in:
parent
f1d52c53d3
commit
9359f7a2d9
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue