shithub: m8c

Download patch

ref: 2aa5ce2fb094339ddd5aae6ebb1dc10be7043419
parent: 56da707a45c89273bf9020744ec034a0b0ec457c
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sun Mar 13 16:32:25 EDT 2022

try possible fix for window resizing in windows

--- a/input.c
+++ b/input.c
@@ -344,6 +344,14 @@
     key = (input_msg_s){special, msg_quit};
     break;
 
+  case SDL_WINDOWEVENT:
+    if (event.window.event == SDL_WINDOWEVENT_RESIZED)
+    {
+      SDL_Log("Resizing window...");
+      key = (input_msg_s){special, msg_reset_display};      
+    }
+    break;
+
   // Keyboard events. Special events are handled within SDL_KEYDOWN.
   case SDL_KEYDOWN:
 
--