Mercurial > molko
diff libadventure/adventure/splashscreen_state.c @ 131:c679e08b32b2
molko: fix startup
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 07 Oct 2020 09:37:28 +0200 |
parents | 789b23e01f52 |
children | ea0bfecdd0fd |
line wrap: on
line diff
--- a/libadventure/adventure/splashscreen_state.c Wed Oct 07 09:11:09 2020 +0200 +++ b/libadventure/adventure/splashscreen_state.c Wed Oct 07 09:37:28 2020 +0200 @@ -28,6 +28,8 @@ #include <core/texture.h> #include <core/window.h> +#include <core/assets/fonts/teutonic1.h> + #include "splashscreen_state.h" #include "mainmenu_state.h" @@ -42,7 +44,7 @@ .color = 0x000000ff }; - if (!(font_open(&font, sys_datapath("fonts/teutonic1.ttf"), 130))) + if (!(font_openmem(&font, teutonic_, sizeof (teutonic_), 130))) panic(); if (!(font_render(&font, &splashscreen_state_data.text, "Molko's Adventure"))) panic();