commit 1ba347ec604aa4e5d145c894a815a21302ce53cb
parent 8d5d4608797179606cba833af4a58d6f4576c8d4
Author: Jacki <jacki@thejackimonster.de>
Date: Thu, 7 Mar 2024 05:55:46 +0100
Adjust printing information next to the logo
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/util.c b/src/util.c
@@ -48,11 +48,11 @@ util_print_info(WINDOW *window,
const char *info)
{
const int x = getmaxx(window) - strlen(info) - 1;
+ const int y = getcury(window);
- if (x < UTIL_LOGO_COLS)
+ if ((x + (y - 2) / 2 < UTIL_LOGO_COLS - 7) ||
+ ((y < 4) && (x < UTIL_LOGO_COLS)))
return;
-
- const int y = getcury(window);
wmove(window, y, x);
wprintw(window, "%s", info);