From c4aeb32df95c2ad8adfacae4b0627c65f9a9e929 Mon Sep 17 00:00:00 2001 From: zachir Date: Mon, 20 Feb 2023 03:51:41 -0600 Subject: customize anysize to have center_text in config to determine if center text or not --- x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x.c') diff --git a/x.c b/x.c index 054b52f..d144cc1 100644 --- a/x.c +++ b/x.c @@ -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); -- cgit v1.2.3