feat(gx): resize GLSDL window with SDL resize event

This commit is contained in:
superp00t 2023-11-26 14:51:01 -05:00
parent 21dcc7d8ae
commit 884d208bd0

View File

@ -3,6 +3,7 @@
#include "event/Input.hpp"
#include "event/Event.hpp"
#include "gx/Window.hpp"
#include "gx/Device.hpp"
#include <bc/Debug.hpp>
#include <storm/Unicode.hpp>
@ -372,6 +373,8 @@ void GLSDLWindow::DispatchSDLWindowResizedEvent(const SDL_Event& event) {
auto width = static_cast<int32_t>(event.window.data1);
auto height = static_cast<int32_t>(event.window.data2);
static_cast<CGxDeviceGLSDL*>(g_theGxDevicePtr)->Resize(width, height);
OsQueuePut(OS_INPUT_SIZE, width, height, 0, 0);
auto bounds = GetSavedWindowBounds();