git.y1.nz

SameBoy

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

commit 927b7493e5af950666f897578d9b8fd2d7b4425f
parent e9c2c866ebdc684b7eaf172c554d9e29a8cb5b31
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  6 Jan 2024 17:46:12 +0200

Fix menu redrawing mode in the SDL frontend in bordered/SGB mode, fixes #576

Diffstat:
MSDL/gui.c3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/SDL/gui.c b/SDL/gui.c @@ -2648,6 +2648,9 @@ void run_gui(bool is_running) memcpy(pixels, converted_background->pixels, sizeof(pixels)); } else { + for (unsigned i = 0; i < width * height; i++) { + pixels[i] = gui_palette_native[0]; + } for (unsigned y = 0; y < 144; y++) { memcpy(pixels + x_offset + width * (y + y_offset), ((uint32_t *)converted_background->pixels) + 160 * y, 160 * 4); }

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