--- a/src/context.c Wed Mar 06 23:38:17 2024 +0100 +++ b/src/context.c Fri Mar 15 00:06:59 2024 +0100 @@ -83,9 +83,11 @@ static void asc_event_window_resized(Uint32 id, Sint32 width, Sint32 height) { for (unsigned int i = 0 ; i < ASC_MAX_WINDOWS ; i++) { if (asc_context.windows[i].id == id) { - asc_context.windows[i].dimensions.width = width; - asc_context.windows[i].dimensions.height = height; - asc_mat4f_ortho(asc_context.windows[i].projection, 0, (float) width, (float) height, 0); + asc_vec2i dimensions = (asc_vec2i) {width, height}; + asc_context.windows[i].resized = true; + asc_context.windows[i].dimensions = dimensions; + asc_context.windows[i].ui.viewport.size = dimensions; + asc_context.windows[i].ui.cameras[0].rect.size = dimensions; return; } }