diff --git a/src/structs.h b/src/structs.h index c1b5c96..7dcc951 100644 --- a/src/structs.h +++ b/src/structs.h @@ -471,6 +471,8 @@ struct Widget { int type; int x; int y; + int w; + int h; int visible; int enabled; int numOptions; diff --git a/src/system/widgets.c b/src/system/widgets.c index 785faf1..8da5108 100644 --- a/src/system/widgets.c +++ b/src/system/widgets.c @@ -216,6 +216,8 @@ static void loadWidgetGroup(char *filename) STRNCPY(w->label, cJSON_GetObjectItem(node, "label")->valuestring, MAX_NAME_LENGTH); w->x = cJSON_GetObjectItem(node, "x")->valueint; w->y = cJSON_GetObjectItem(node, "y")->valueint; + w->w = cJSON_GetObjectItem(node, "w")->valueint; + w->h = cJSON_GetObjectItem(node, "h")->valueint; w->type = lookup(cJSON_GetObjectItem(node, "type")->valuestring); switch (w->type)