src/context.c

changeset 105
2b7f92ff2c15
parent 95
622887f7e954
child 106
895f92cff6b8
--- a/src/context.c	Sat May 03 13:30:04 2025 +0200
+++ b/src/context.c	Sat May 03 13:49:24 2025 +0200
@@ -211,9 +211,9 @@
 static void asc_event_window_resized(Uint32 id, Sint32 width, Sint32 height) {
     unsigned int i = asc_window_index(id);
     if (i < ASC_MAX_WINDOWS) {
-        asc_vec2i dimensions = (asc_vec2i) {width, height};
         asc_context.windows[i].resized = true;
-        asc_context.windows[i].dimensions = dimensions;
+        asc_context.windows[i].dimensions.width = (unsigned) width;
+        asc_context.windows[i].dimensions.height = (unsigned) height;
     }
 }
 

mercurial