diff libmlk-adventure/adventure/state/splashscreen.c @ 263:cd5bdb995052

cmake: create a new libmlk-data library
author David Demelier <markand@malikania.fr>
date Tue, 08 Dec 2020 17:00:03 +0100
parents 16be1ad3ddba
children a15f77eda9a4
line wrap: on
line diff
--- a/libmlk-adventure/adventure/state/splashscreen.c	Mon Dec 07 23:21:05 2020 +0100
+++ b/libmlk-adventure/adventure/state/splashscreen.c	Tue Dec 08 17:00:03 2020 +0100
@@ -33,7 +33,7 @@
 
 #include <ui/align.h>
 
-#include <assets/fonts/cubic.h>
+#include <adventure/molko.h>
 
 #include "splashscreen.h"
 #include "mainmenu.h"
@@ -54,7 +54,7 @@
 	struct self *self = state->data;
 	struct font font;
 
-	if (!font_openmem(&font, fonts_cubic, sizeof (fonts_cubic), 80))
+	if (!font_open(&font, molko_path("fonts/cubic.ttf"), 80))
 		panic();
 
 	font.style = FONT_STYLE_ANTIALIASED;