diff options
author | zachir <zachir@librem.one> | 2023-02-20 03:51:41 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-20 03:51:41 -0600 |
commit | c4aeb32df95c2ad8adfacae4b0627c65f9a9e929 (patch) | |
tree | 29a190294b43d2e37549feef17105eb67bf740a4 /x.c | |
parent | 3a52163eab96b628346a24c4922aa24ea2fc3bad (diff) |
customize anysize to have center_text in config to determine if center text or not
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -768,8 +768,8 @@ cresize(int width, int height) col = MAX(1, col); row = MAX(1, row); - win.hborderpx = (win.w - col * win.cw) / 2; - win.vborderpx = (win.h - row * win.ch) / 2; + win.hborderpx = center_text ? (win.w - col * win.cw) / 2 : 0; // (win.w - col * win.cw) / 2 + win.vborderpx = center_text ? (win.h - row * win.ch) / 2 : 0; // (win.h - row * win.ch) / 2 tresize(col, row); xresize(col, row); |