From 163961df4f0f222e98ad83a336e96203e0678327 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 12 Sep 2024 20:16:17 +0300 Subject: [PATCH] ports/doom: Add alpha channel for framebuffer access --- ports/doom/patches/0001-Add-support-for-banan-os.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/doom/patches/0001-Add-support-for-banan-os.patch b/ports/doom/patches/0001-Add-support-for-banan-os.patch index 62d453ed..7d9a245d 100644 --- a/ports/doom/patches/0001-Add-support-for-banan-os.patch +++ b/ports/doom/patches/0001-Add-support-for-banan-os.patch @@ -168,7 +168,7 @@ index 0000000..9161771 +{ + for (size_t y = 0; y < DOOMGENERIC_RESY; y++) + for (size_t x = 0; x < DOOMGENERIC_RESX; x++) -+ s_window->set_pixel(x, y, DG_ScreenBuffer[y * DOOMGENERIC_RESX + x]); ++ s_window->set_pixel(x, y, 0xFF000000 | DG_ScreenBuffer[y * DOOMGENERIC_RESX + x]); + s_window->invalidate(); + s_window->poll_events(); +}