diff libmlk-ui/mlk/ui/label.c @ 465:01f5580e43d1

core: panic -> mlk_panic
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 10:03:52 +0100
parents 90a097b1aa0f
children bc5483849614
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/label.c	Mon Feb 27 09:57:15 2023 +0100
+++ b/libmlk-ui/mlk/ui/label.c	Mon Feb 27 10:03:52 2023 +0100
@@ -46,7 +46,7 @@
 	/* Shadow text, only if enabled. */
 	if (label->flags & LABEL_FLAGS_SHADOW) {
 		if (mlk_font_render(font, &tex, label->text, t->colors[THEME_COLOR_SHADOW]) < 0)
-			panic();
+			mlk_panic();
 
 		texture_draw(&tex, label->x + 1, label->y + 1);
 		texture_finish(&tex);
@@ -54,7 +54,7 @@
 
 	/* Normal text. */
 	if (mlk_font_render(font, &tex, label->text, color) < 0)
-		panic();
+		mlk_panic();
 
 	texture_draw(&tex, label->x, label->y);
 	texture_finish(&tex);
@@ -78,7 +78,7 @@
 		: t->fonts[THEME_FONT_INTERFACE];
 
 	if (mlk_font_query(f, label->text, w, h) < 0)
-		panic();
+		mlk_panic();
 }
 
 void