config: replace union in config struct with simple width/height members

This commit is contained in:
Craig Barnes 2020-11-30 02:24:38 +00:00
parent 0beed9fcf6
commit adde947fc5
5 changed files with 16 additions and 46 deletions

View file

@ -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;