git.y1.nz

SameBoy

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

commit 850e7bb78c2717406727ed0d7907a36d066f0cd3
parent b5eea012cc6e5785a6aa40c5d9ad1592d67f85c7
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  5 Feb 2022 17:44:10 +0200

Fixed obscured object indication in the OAM viewer API

Diffstat:
MCore/display.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/display.c b/Core/display.c @@ -2037,9 +2037,9 @@ uint8_t GB_get_oam_info(GB_gameboy_t *gb, GB_oam_info_t *dest, uint8_t *object_h for (signed y = 0; y < LINES; y++) { object_t *object = (object_t *) &gb->oam; uint8_t objects_in_line = 0; + bool obscured = false; for (uint8_t i = 0; i < 40; i++, object++) { signed object_y = object->y - 16; - bool obscured = false; // Is object not in this line? if (object_y > y || object_y + *object_height <= y) continue; if (++objects_in_line == 11) obscured = true;

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