From 884d208bd094a221d370cc3002063bf737e4569e Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 26 Nov 2023 14:51:01 -0500 Subject: [PATCH] feat(gx): resize GLSDL window with SDL resize event --- src/gx/glsdl/GLSDLWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gx/glsdl/GLSDLWindow.cpp b/src/gx/glsdl/GLSDLWindow.cpp index 9438890..8ce21b3 100644 --- a/src/gx/glsdl/GLSDLWindow.cpp +++ b/src/gx/glsdl/GLSDLWindow.cpp @@ -3,6 +3,7 @@ #include "event/Input.hpp" #include "event/Event.hpp" #include "gx/Window.hpp" +#include "gx/Device.hpp" #include #include @@ -372,6 +373,8 @@ void GLSDLWindow::DispatchSDLWindowResizedEvent(const SDL_Event& event) { auto width = static_cast(event.window.data1); auto height = static_cast(event.window.data2); + static_cast(g_theGxDevicePtr)->Resize(width, height); + OsQueuePut(OS_INPUT_SIZE, width, height, 0, 0); auto bounds = GetSavedWindowBounds();