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

This commit is contained in:
Lior Halphon 2024-01-06 17:46:12 +02:00
parent e9c2c866eb
commit 927b7493e5
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}