mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
config: replace union in config struct with simple width/height members
This commit is contained in:
parent
0beed9fcf6
commit
adde947fc5
5 changed files with 16 additions and 46 deletions
12
config.h
12
config.h
|
|
@ -64,16 +64,8 @@ struct config {
|
|||
|
||||
struct {
|
||||
enum conf_size_type type;
|
||||
union {
|
||||
struct {
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
} px;
|
||||
struct {
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
} cells;
|
||||
};
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
} size;
|
||||
|
||||
unsigned pad_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue