From 36dcf14db7ae982b9506cabec13d5920d4a642be Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sat, 27 Jul 2024 18:01:45 +0300 Subject: [PATCH] resize viewport of window maximization/minimization --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 3e83ffa..1959a7b 100644 --- a/src/main.c +++ b/src/main.c @@ -37,6 +37,7 @@ static void poll_events(void) { switch (e.window.event) { case SDL_WINDOWEVENT_RESIZED: + case SDL_WINDOWEVENT_SIZE_CHANGED: ctx.window_w = e.window.data1; ctx.window_h = e.window.data2; ctx.window_size_has_changed = true;