comparison src/core/theme.c @ 106:ed1a6bb02a78

inventory_dialog: use a small circle as test
author David Demelier <markand@malikania.fr>
date Wed, 01 Apr 2020 12:10:00 +0200
parents f6b5e2fbbc81
children 62aeb864093f
comparison
equal deleted inserted replaced
105:f6b5e2fbbc81 106:ed1a6bb02a78
15129 t->fonts[THEME_FONT_INTERFACE]->color = t->colors[THEME_COLOR_SHADOW]; 15129 t->fonts[THEME_FONT_INTERFACE]->color = t->colors[THEME_COLOR_SHADOW];
15130 15130
15131 if (!font_render(t->fonts[THEME_FONT_INTERFACE], &tex, label->text)) 15131 if (!font_render(t->fonts[THEME_FONT_INTERFACE], &tex, label->text))
15132 panic(); 15132 panic();
15133 15133
15134 math_centerize(px, py, tex.w, tex.h, 15134 maths_centerize(px, py, tex.w, tex.h,
15135 label->x, label->y, label->w, label->h); 15135 label->x, label->y, label->w, label->h);
15136 15136
15137 texture_draw(&tex, x + 1, y + 1); 15137 texture_draw(&tex, x + 1, y + 1);
15138 texture_finish(&tex); 15138 texture_finish(&tex);
15139 } 15139 }
15144 : t->colors[THEME_COLOR_NORMAL]; 15144 : t->colors[THEME_COLOR_NORMAL];
15145 15145
15146 if (!font_render(t->fonts[THEME_FONT_INTERFACE], &tex, label->text)) 15146 if (!font_render(t->fonts[THEME_FONT_INTERFACE], &tex, label->text))
15147 panic(); 15147 panic();
15148 15148
15149 math_centerize(px, py, tex.w, tex.h, 15149 maths_centerize(px, py, tex.w, tex.h,
15150 label->x, label->y, label->w, label->h); 15150 label->x, label->y, label->w, label->h);
15151 15151
15152 texture_draw(&tex, x, y); 15152 texture_draw(&tex, x, y);
15153 texture_finish(&tex); 15153 texture_finish(&tex);
15154 } 15154 }