diff options
Diffstat (limited to 'sub/osd.c')
-rw-r--r-- | sub/osd.c | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -44,28 +44,28 @@ #define OPT_BASE_STRUCT struct osd_style_opts static const m_option_t style_opts[] = { - OPT_STRING("font", font, 0), - OPT_FLOATRANGE("font-size", font_size, 0, 1, 9000), - OPT_COLOR("color", color, 0), - OPT_COLOR("border-color", border_color, 0), - OPT_COLOR("shadow-color", shadow_color, 0), - OPT_COLOR("back-color", back_color, 0), - OPT_FLOAT("border-size", border_size, 0), - OPT_FLOAT("shadow-offset", shadow_offset, 0), - OPT_FLOATRANGE("spacing", spacing, 0, -10, 10), - OPT_INTRANGE("margin-x", margin_x, 0, 0, 300), - OPT_INTRANGE("margin-y", margin_y, 0, 0, 600), - OPT_CHOICE("align-x", align_x, 0, - ({"left", -1}, {"center", 0}, {"right", +1})), - OPT_CHOICE("align-y", align_y, 0, - ({"top", -1}, {"center", 0}, {"bottom", +1})), - OPT_FLOATRANGE("blur", blur, 0, 0, 20), - OPT_FLAG("bold", bold, 0), - OPT_FLAG("italic", italic, 0), - OPT_CHOICE("justify", justify, 0, - ({"auto", 0}, {"left", 1}, {"center", 2}, {"right", 3})), - OPT_CHOICE("font-provider", font_provider, 0, - ({"auto", 0}, {"none", 1}, {"fontconfig", 2})), + {"font", OPT_STRING(font)}, + {"font-size", OPT_FLOAT(font_size), M_RANGE(1, 9000)}, + {"color", OPT_COLOR(color)}, + {"border-color", OPT_COLOR(border_color)}, + {"shadow-color", OPT_COLOR(shadow_color)}, + {"back-color", OPT_COLOR(back_color)}, + {"border-size", OPT_FLOAT(border_size)}, + {"shadow-offset", OPT_FLOAT(shadow_offset)}, + {"spacing", OPT_FLOAT(spacing), M_RANGE(-10, 10)}, + {"margin-x", OPT_INT(margin_x), M_RANGE(0, 300)}, + {"margin-y", OPT_INT(margin_y), M_RANGE(0, 600)}, + {"align-x", OPT_CHOICE(align_x, + {"left", -1}, {"center", 0}, {"right", +1})}, + {"align-y", OPT_CHOICE(align_y, + {"top", -1}, {"center", 0}, {"bottom", +1})}, + {"blur", OPT_FLOAT(blur), M_RANGE(0, 20)}, + {"bold", OPT_FLAG(bold)}, + {"italic", OPT_FLAG(italic)}, + {"justify", OPT_CHOICE(justify, + {"auto", 0}, {"left", 1}, {"center", 2}, {"right", 3})}, + {"font-provider", OPT_CHOICE(font_provider, + {"auto", 0}, {"none", 1}, {"fontconfig", 2})}, {0} }; |