git.y1.nz

SameBoy

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

commit f08f16346e807da0b4987c705e0aaecd2bd8d521
parent d94c8b912569532f004f10c158bd60ef88801229
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 24 Nov 2021 23:13:52 +0200

Fix #293

Diffstat:
MCore/display.c3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Core/display.c b/Core/display.c @@ -1072,8 +1072,7 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles) gb->position_in_line = - (gb->io_registers[GB_IO_SCX] & 7) - 8; gb->lcd_x = 0; - gb->extra_penalty_for_sprite_at_0 = (gb->io_registers[GB_IO_SCX] & 7); - + gb->extra_penalty_for_sprite_at_0 = MIN((gb->io_registers[GB_IO_SCX] & 7), 5); /* The actual rendering cycle */ gb->fetcher_state = 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.