git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 9359f7a2d9f9068ba1b52635601c85df002cb667
parent f1d52c53d3775b12aa5f3ef5ce39f83364eadd2c
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 29 Mar 2025 19:12:35 +0300

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

Diffstat:
MCore/sgb.c4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Core/sgb.c b/Core/sgb.c @@ -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++; } }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.