src/window.c

changeset 175
e5544920377e
parent 155
b598b4eb4b44
--- a/src/window.c	Wed Jul 02 23:21:17 2025 +0200
+++ b/src/window.c	Wed Jul 02 23:55:50 2025 +0200
@@ -73,7 +73,7 @@
     {
         Sint32 w, h;
         SDL_GetWindowSize(window->window, &w, &h);
-        window->dimensions = asc_vec2u_new(w, h);
+        window->dimensions = ASC_VEC2U(w, h);
     }
     window->resized = true; // count initial sizing as resize
 
@@ -83,7 +83,7 @@
     if (asc_gl_context_initialize(&window->glctx, window->window, &settings->glsettings)) {
         asc_scene_init(&window->ui,
             .type = ASC_CAMERA_ORTHO,
-            .ortho.rect = asc_recti_new(0, 0, window->dimensions.width, window->dimensions.height),
+            .ortho.rect = ASC_RECTI(0, 0, window->dimensions.width, window->dimensions.height),
             .projection_update_func = asc_camera_ortho_update_size
         );
         asc_dprintf("Window %u initialized at index %u", window->id, index);
@@ -206,5 +206,5 @@
         asc_error("Failed to get display mode for window %u on display %d: %s",
             window->id, display, SDL_GetError());
     }
-    return asc_vec2u_new(dm.w, dm.h);
+    return ASC_VEC2U(dm.w, dm.h);
 }

mercurial