]> git.lizzy.rs Git - nothing.git/blobdiff - src/ui/console_log.c
(#893) Remove source_code from Script
[nothing.git] / src / ui / console_log.c
index 2f97edac4536814696da5b8d16b81a3ac87773b9..305ced3d5436594b927964b34be368bb2e266881 100644 (file)
@@ -1,6 +1,6 @@
 #include "system/stacktrace.h"
 #include <stdlib.h>
-#include <SDL2/SDL.h>
+#include <SDL.h>
 
 #include "color.h"
 #include "game/sprite_font.h"
@@ -12,7 +12,7 @@
 
 struct Console_Log
 {
-    Lt lt;
+    Lt *lt;
 
     const Sprite_font *font;
     Vec font_size;
@@ -27,7 +27,7 @@ Console_Log *create_console_log(const Sprite_font *font,
                 Vec font_size,
                 size_t capacity)
 {
-    Lt lt = {0};
+    Lt *lt = create_lt();
 
     Console_Log *console_log = PUSH_LT(lt, nth_calloc(1, sizeof(Console_Log)), free);
     if (console_log == NULL) {