Reorder structs, alignment

This commit is contained in:
twinaphex 2020-08-18 17:16:59 +02:00
parent 3a21a6e134
commit 4f991ab640
1 changed files with 10 additions and 6 deletions

View File

@ -65,20 +65,24 @@ struct font_atlas
struct font_params struct font_params
{ {
/* Drop shadow offset.
* If both are 0, no drop shadow will be rendered. */
int drop_x, drop_y;
/* ABGR. Use the macros. */
uint32_t color;
float x; float x;
float y; float y;
float scale; float scale;
/* Drop shadow color multiplier. */ /* Drop shadow color multiplier. */
float drop_mod; float drop_mod;
/* Drop shadow offset.
* If both are 0, no drop shadow will be rendered. */
int drop_x, drop_y;
/* Drop shadow alpha */ /* Drop shadow alpha */
float drop_alpha; float drop_alpha;
/* ABGR. Use the macros. */
uint32_t color;
bool full_screen;
enum text_alignment text_align; enum text_alignment text_align;
bool full_screen;
}; };
struct font_line_metrics struct font_line_metrics