comparison 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
comparison
equal deleted inserted replaced
173:cd69c8791dac 174:6992085d47fd
58 splash->next = next; 58 splash->next = next;
59 59
60 if (!font_openmem(&font, fonts_cubic, sizeof (fonts_cubic), 80)) 60 if (!font_openmem(&font, fonts_cubic, sizeof (fonts_cubic), 80))
61 panic(); 61 panic();
62 62
63 font.color = 0x19332dff;
64 font.style = FONT_STYLE_ANTIALIASED; 63 font.style = FONT_STYLE_ANTIALIASED;
65 64
66 if (!font_render(&font, &splash->tex, "malikania")) 65 if (!font_render(&font, &splash->tex, "malikania", 0x19332dff))
67 panic(); 66 panic();
68 67
69 align(ALIGN_CENTER, &splash->x, &splash->y, splash->tex.w, splash->tex.h, 68 align(ALIGN_CENTER, &splash->x, &splash->y, splash->tex.w, splash->tex.h,
70 0, 0, window.w, window.h); 69 0, 0, window.w, window.h);
71 font_finish(&font); 70 font_finish(&font);