Mercurial > molko
comparison libcore/core/debug.c @ 131:c679e08b32b2
molko: fix startup
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 07 Oct 2020 09:37:28 +0200 |
parents | 789b23e01f52 |
children | c46f80820b42 |
comparison
equal
deleted
inserted
replaced
130:09978921e281 | 131:c679e08b32b2 |
---|---|
20 #include <stdio.h> | 20 #include <stdio.h> |
21 | 21 |
22 #include "debug.h" | 22 #include "debug.h" |
23 #include "font.h" | 23 #include "font.h" |
24 #include "texture.h" | 24 #include "texture.h" |
25 #include "theme.h" | |
25 | 26 |
26 #define PADDING_X 5 | 27 #define PADDING_X 5 |
27 #define PADDING_Y 5 | 28 #define PADDING_Y 5 |
28 | 29 |
29 struct debug_options debug_options = { | 30 struct debug_options debug_options = { |
55 struct font *font; | 56 struct font *font; |
56 unsigned int gapy; | 57 unsigned int gapy; |
57 | 58 |
58 vsnprintf(line, sizeof (line), fmt, ap); | 59 vsnprintf(line, sizeof (line), fmt, ap); |
59 | 60 |
60 font = report->font ? report->font : debug_options.default_font; | 61 font = report->font ? report->font : theme_default()->fonts[THEME_FONT_INTERFACE]; |
61 font->color = report->color; | 62 font->color = report->color; |
62 font->style = report->style; | 63 font->style = report->style; |
63 | 64 |
64 if (!font_render(font, &tex, line)) | 65 if (!font_render(font, &tex, line)) |
65 return; | 66 return; |