From 7c84dbdbe50fb1d1836ce99f7ea7426353298a8b Mon Sep 17 00:00:00 2001 From: chrisws Date: Sat, 18 Feb 2023 14:31:29 +1030 Subject: [PATCH] SDL: fixed an issue with window resizing #144 --- src/platform/sdl/runtime.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/sdl/runtime.cpp b/src/platform/sdl/runtime.cpp index 49bab154..69ae61cf 100644 --- a/src/platform/sdl/runtime.cpp +++ b/src/platform/sdl/runtime.cpp @@ -616,6 +616,7 @@ void Runtime::setWindowRect(int x, int y, int width, int height) { logEntered(); if (width > 0 && height > 0) { SDL_SetWindowSize(_window, width, height); + onResize(width, height); } if (x > 0 && y > 0) { SDL_SetWindowPosition(_window, x, y);