src/context.c

changeset 290
2eb3813562e7
parent 253
6ab35fcb8676
--- a/src/context.c	Sun Nov 30 16:52:33 2025 +0100
+++ b/src/context.c	Wed Dec 31 17:50:20 2025 +0100
@@ -53,9 +53,9 @@
     memset(&asc_context, 0, sizeof(AscContext));
 
     // initialize default paths
-    asc_context.font_path = cx_strdup(CX_STR("./fonts"));
-    asc_context.shader_path = cx_strdup(CX_STR("./shader"));
-    asc_context.texture_path = cx_strdup(CX_STR("./textures"));
+    asc_context.font_path = cx_strdup("./fonts");
+    asc_context.shader_path = cx_strdup("./shader");
+    asc_context.texture_path = cx_strdup("./textures");
 
     // initialize the font cache
     asc_font_cache_init();
@@ -66,9 +66,7 @@
     // initialize error buffer
     cxBufferInit(
             &asc_context.error_buffer,
-            NULL,
-            256,
-            NULL,
+            NULL, NULL, 256,
             CX_BUFFER_AUTO_EXTEND
     );
 

mercurial