SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit db50462710d59ce215b4dbe152221a275f296d21 parent 59dfb1a85a6ed4b3dd44f94de7b8b7f2d2cea4d1 Author: Lior Halphon <LIJI32@gmail.com> Date: Sun, 26 Dec 2021 23:24:08 +0200 More accurate fix Diffstat:
| M | Core/display.c | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Core/display.c b/Core/display.c @@ -930,6 +930,9 @@ static void render_line(GB_gameboy_t *gb) uint16_t line_address = get_object_line_address(gb, object); uint8_t data0 = gb->vram[line_address]; uint8_t data1 = gb->vram[line_address + 1]; + if (gb->n_visible_objs == 0) { + gb->data_for_sel_glitch = data1; + } if (object->flags & 0x20) { data0 = flip(data0); data1 = flip(data1); @@ -1643,7 +1646,6 @@ abort_fetching_object: skip_slow_mode_3: /* TODO: This seems incorrect (glitches Tesserae), verify further */ - gb->data_for_sel_glitch = 0; /* if (gb->fetcher_state == 4 || gb->fetcher_state == 5) { gb->data_for_sel_glitch = gb->current_tile_data[0];
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.