diff libmlk-ui/ui/debug.c @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents 71b3b7036de7
children d01e83210ca2
line wrap: on
line diff
--- a/libmlk-ui/ui/debug.c	Wed Mar 10 18:49:00 2021 +0100
+++ b/libmlk-ui/ui/debug.c	Wed Mar 10 18:49:08 2021 +0100
@@ -26,7 +26,7 @@
 
 struct debug_options debug_options = {
 #if !defined(NDEBUG)
-	.enable = true
+	.enable = 1
 #endif
 };
 
@@ -66,7 +66,7 @@
 	theme = report->theme ? report->theme : theme_default();
 	font = theme->fonts[THEME_FONT_DEBUG];
 
-	if (!font_render(font, &tex, line, theme->colors[THEME_COLOR_DEBUG]))
+	if (font_render(font, &tex, line, theme->colors[THEME_COLOR_DEBUG]) < 0)
 		return;
 
 	x = theme->padding;