fix typo in ASC_FLAG_INITIALIZED

Fri, 04 Jul 2025 23:23:29 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 04 Jul 2025 23:23:29 +0200
changeset 177
954512fc391f
parent 176
cb2f60f48337
child 178
d581ba87fe2a

fix typo in ASC_FLAG_INITIALIZED

src/ascension/context.h file | annotate | diff | comparison | revisions
src/context.c file | annotate | diff | comparison | revisions
--- a/src/ascension/context.h	Thu Jul 03 23:01:52 2025 +0200
+++ b/src/ascension/context.h	Fri Jul 04 23:23:29 2025 +0200
@@ -39,7 +39,7 @@
 #include <stdio.h>
 
 /** The flag for the overall initialized state. */
-#define ASC_FLAG_INITILIZED  0x01u
+#define ASC_FLAG_INITIALIZED  0x01u
 
 /** Flag is set when the error buffer contains new error information. */
 #define ASC_FLAG_HAS_ERROR  0x02u
--- a/src/context.c	Thu Jul 03 23:01:52 2025 +0200
+++ b/src/context.c	Fri Jul 04 23:23:29 2025 +0200
@@ -49,7 +49,7 @@
 void asc_font_cache_destroy(void);
 
 void asc_context_initialize(void) {
-    if (asc_test_flag(asc_context.flags, ASC_FLAG_INITILIZED))
+    if (asc_test_flag(asc_context.flags, ASC_FLAG_INITIALIZED))
         return;
     memset(&asc_context, 0, sizeof(AscContext));
 
@@ -88,7 +88,7 @@
     }
     SDL_ClearError();
     asc_context.total_nanos = asc_nanos();
-    asc_set_flag(asc_context.flags, ASC_FLAG_INITILIZED);
+    asc_set_flag(asc_context.flags, ASC_FLAG_INITIALIZED);
     asc_dprintf("Ascension context initialized.");
 }
 

mercurial