SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 893d7d162ac6b9656d4c87d3f3db3404e378044a parent 85da5b64d30cd30c503c1e29c4d22768aec6969e Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 9 Oct 2021 22:28:36 +0300 Don't try to render tiles 100-3FF Diffstat:
| M | Core/sgb.c | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Core/sgb.c b/Core/sgb.c @@ -532,7 +532,6 @@ static uint32_t convert_rgb15_with_fade(GB_gameboy_t *gb, uint16_t color, uint8_ return GB_convert_rgb15(gb, color, false); } -#include <stdio.h> static void render_boot_animation (GB_gameboy_t *gb) { #include "graphics/sgb_animation_logo.inc" @@ -765,6 +764,7 @@ void GB_sgb_render(GB_gameboy_t *gb) continue; } uint16_t tile = LE16(gb->sgb->border.map[tile_x + tile_y * 32]); + if (tile & 0x300) continue; // Unused tile uint8_t flip_x = (tile & 0x4000)? 0:7; uint8_t flip_y = (tile & 0x8000)? 7:0; uint8_t palette = (tile >> 10) & 3;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.