Mercurial > molko
comparison libadventure/adventure/trace_hud.c @ 148:c577c15df07f
misc: split libraries, closes #2496
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 15 Oct 2020 10:32:18 +0200 |
parents | 7f1af54bb35a |
children | a43e79d489ea |
comparison
equal
deleted
inserted
replaced
147:b386d25832c8 | 148:c577c15df07f |
---|---|
18 | 18 |
19 #include <assert.h> | 19 #include <assert.h> |
20 #include <stdio.h> | 20 #include <stdio.h> |
21 #include <string.h> | 21 #include <string.h> |
22 | 22 |
23 #include <core/label.h> | |
24 #include <core/font.h> | 23 #include <core/font.h> |
25 #include <core/theme.h> | |
26 #include <core/trace.h> | 24 #include <core/trace.h> |
25 #include <core/window.h> | |
26 | |
27 #include <ui/label.h> | |
28 #include <ui/theme.h> | |
27 | 29 |
28 #include "trace_hud.h" | 30 #include "trace_hud.h" |
29 | 31 |
30 #define LINES_MAX (4) | 32 #define LINES_MAX (4) |
31 #define THEME(t) ((t) ? (t) : theme_default()) | 33 #define THEME(t) ((t) ? (t) : theme_default()) |
96 label_draw(&(struct label) { | 98 label_draw(&(struct label) { |
97 .x = x, | 99 .x = x, |
98 .y = y, | 100 .y = y, |
99 .text = data.lines[i], | 101 .text = data.lines[i], |
100 .theme = th, | 102 .theme = th, |
101 .flags = LABEL_ALIGN_LEFT | 103 .align = LABEL_ALIGN_TOP_LEFT |
102 }); | 104 }); |
103 | 105 |
104 y += font_height(th->fonts[THEME_FONT_INTERFACE]); | 106 y += font_height(th->fonts[THEME_FONT_INTERFACE]); |
105 y += th->padding; | 107 y += th->padding; |
106 } | 108 } |