git.y1.nz

SameBoy

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

commit a7c8b702da12eac1e2f6e1d13cab2acb6f216cbd
parent f1761340fce635b16f847272547658494e3d0049
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  9 Oct 2021 21:08:17 +0300

Some games like to race with the SGB border fade

Diffstat:
MCore/sgb.c7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Core/sgb.c b/Core/sgb.c @@ -648,7 +648,7 @@ void GB_sgb_render(GB_gameboy_t *gb) } } if (gb->sgb->transfer_dest == TRANSFER_BORDER_DATA) { - gb->sgb->border_animation = 64; + gb->sgb->border_animation = 80; } } } @@ -729,7 +729,10 @@ void GB_sgb_render(GB_gameboy_t *gb) } uint32_t border_colors[16 * 4]; - if (gb->sgb->border_animation == 0 || gb->sgb->intro_animation < GB_SGB_INTRO_ANIMATION_LENGTH) { + if (gb->sgb->border_animation == 0 || gb->sgb->border_animation > 64 || gb->sgb->intro_animation < GB_SGB_INTRO_ANIMATION_LENGTH) { + if (gb->sgb->border_animation != 0) { + gb->sgb->border_animation--; + } for (unsigned i = 0; i < 16 * 4; i++) { border_colors[i] = convert_rgb15(gb, LE16(gb->sgb->border.palette[i])); }

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