ports/doom: Add alpha channel for framebuffer access

This commit is contained in:
Bananymous 2024-09-12 20:16:17 +03:00
parent 97da386ed6
commit 163961df4f
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ index 0000000..9161771
+{ +{
+ for (size_t y = 0; y < DOOMGENERIC_RESY; y++) + for (size_t y = 0; y < DOOMGENERIC_RESY; y++)
+ for (size_t x = 0; x < DOOMGENERIC_RESX; x++) + 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->invalidate();
+ s_window->poll_events(); + s_window->poll_events();
+} +}