diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-03-11 08:41:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-03-11 08:41:19 +0000 |
commit | 46cbbe3d4566885b8ad4235598389936f63c2c01 (patch) | |
tree | 08d62878ba077a0027ece4ae562d77b160a2d9c1 /style.c | |
parent | 7bef887fd1051e2bbeb268888b51588ccaac306e (diff) | |
parent | ef9700816fd2bd521bab837ccd85e0a596aa3aa8 (diff) | |
download | rtmux-46cbbe3d4566885b8ad4235598389936f63c2c01.tar.gz rtmux-46cbbe3d4566885b8ad4235598389936f63c2c01.tar.bz2 rtmux-46cbbe3d4566885b8ad4235598389936f63c2c01.zip |
Merge branch 'master' into 3.2-rc
Diffstat (limited to 'style.c')
-rw-r--r-- | style.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -139,6 +139,8 @@ style_parse(struct style *sy, const struct grid_cell *base, const char *in) sy->align = STYLE_ALIGN_CENTRE; else if (strcasecmp(tmp + 6, "right") == 0) sy->align = STYLE_ALIGN_RIGHT; + else if (strcasecmp(tmp + 6, "absolute-centre") == 0) + sy->align = STYLE_ALIGN_ABSOLUTE_CENTRE; else goto error; } else if (end > 5 && strncasecmp(tmp, "fill=", 5) == 0) { @@ -227,6 +229,8 @@ style_tostring(struct style *sy) tmp = "centre"; else if (sy->align == STYLE_ALIGN_RIGHT) tmp = "right"; + else if (sy->align == STYLE_ALIGN_ABSOLUTE_CENTRE) + tmp = "absolute-centre"; off += xsnprintf(s + off, sizeof s - off, "%salign=%s", comma, tmp); comma = ","; |