diff libadventure/adventure/state/splashscreen.c @ 174:6992085d47fd

ui: major theme overhaul, closes #2509 @1h - The font does not contain a color anymore, - Add a new color argument to font_render, - Theme are stored `const` in UI elements to promise no modifications, - Also make all <ui>_draw function to take a const widget too.
author David Demelier <markand@malikania.fr>
date Thu, 22 Oct 2020 15:16:43 +0200
parents 629f55f3961e
children f6497ec74b49
line wrap: on
line diff
--- a/libadventure/adventure/state/splashscreen.c	Wed Oct 21 12:50:11 2020 +0200
+++ b/libadventure/adventure/state/splashscreen.c	Thu Oct 22 15:16:43 2020 +0200
@@ -60,10 +60,9 @@
 	if (!font_openmem(&font, fonts_cubic, sizeof (fonts_cubic), 80))
 		panic();
 
-	font.color = 0x19332dff;
 	font.style = FONT_STYLE_ANTIALIASED;
 
-	if (!font_render(&font, &splash->tex, "malikania"))
+	if (!font_render(&font, &splash->tex, "malikania", 0x19332dff))
 		panic();
 
 	align(ALIGN_CENTER, &splash->x, &splash->y, splash->tex.w, splash->tex.h,