diff options
Diffstat (limited to 'client/common')
-rw-r--r-- | client/common/common.c | 5 | ||||
-rw-r--r-- | client/common/common.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/client/common/common.c b/client/common/common.c index 078a525..e5eede5 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -191,8 +191,7 @@ parse_args(struct client *client, int *argc, char **argv[]) break; case 0x102: - if (sscanf(optarg, "%ms %u", &client->font, &client->font_size) < 2) - sscanf(optarg, "%ms", &client->font); + client->font = optarg; break; case 0x103: client->colors[BM_COLOR_BG] = optarg; @@ -251,7 +250,7 @@ menu_with_options(struct client *client) if (!(menu = bm_menu_new(client->renderer, client->prioritory))) return NULL; - bm_menu_set_font(menu, client->font, client->font_size); + bm_menu_set_font(menu, client->font); bm_menu_set_title(menu, client->title); bm_menu_set_prefix(menu, client->prefix); bm_menu_set_filter_mode(menu, client->filter_mode); diff --git a/client/common/common.h b/client/common/common.h index e710236..bae498f 100644 --- a/client/common/common.h +++ b/client/common/common.h @@ -12,8 +12,7 @@ struct client { const char *title; const char *prefix; const char *renderer; - char *font; - uint32_t font_size; + const char *font; int32_t selected; int32_t bottom; int32_t grab; |