From df3d2d57c3e933e84d334365775b6a7d8b1fa2d8 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 7 May 2025 17:23:15 +0300 Subject: [PATCH] ports/quake2: Update to new LibGUI interface --- ports/quake2/patches/0001-Add-support-for-banan-os.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/quake2/patches/0001-Add-support-for-banan-os.patch b/ports/quake2/patches/0001-Add-support-for-banan-os.patch index 1889b41f..292ee116 100644 --- a/ports/quake2/patches/0001-Add-support-for-banan-os.patch +++ b/ports/quake2/patches/0001-Add-support-for-banan-os.patch @@ -198,7 +198,7 @@ new file mode 100644 index 0000000..c7d7e16 --- /dev/null +++ b/port_soft_banan_os.cpp -@@ -0,0 +1,277 @@ +@@ -0,0 +1,278 @@ +#include +#include +#include @@ -397,11 +397,12 @@ index 0000000..c7d7e16 + +void SWimp_EndFrame(void) +{ ++ auto& texture = s_window->texture(); + const uint32_t width = s_window->width(); + const uint32_t height = s_window->height(); + for (int y = 0; y < height; y++) + for (int x = 0; x < width; x++) -+ s_window->set_pixel(x, y, s_palette[s_buffer[y * width + x]].as_argb()); ++ texture.set_pixel(x, y, s_palette[s_buffer[y * width + x]].as_argb()); + s_window->invalidate(); +} +