diff options
author | Jacki <jacki@thejackimonster.de> | 2024-03-07 05:55:46 +0100 |
---|---|---|
committer | Jacki <jacki@thejackimonster.de> | 2024-03-07 05:55:46 +0100 |
commit | 1ba347ec604aa4e5d145c894a815a21302ce53cb (patch) | |
tree | 53009a10c29aab2ed758d58542e676b2c1006f19 | |
parent | 8d5d4608797179606cba833af4a58d6f4576c8d4 (diff) | |
download | messenger-cli-master.tar.gz messenger-cli-master.zip |
Signed-off-by: Jacki <jacki@thejackimonster.de>
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -48,11 +48,11 @@ util_print_info(WINDOW *window, | |||
48 | const char *info) | 48 | const char *info) |
49 | { | 49 | { |
50 | const int x = getmaxx(window) - strlen(info) - 1; | 50 | const int x = getmaxx(window) - strlen(info) - 1; |
51 | const int y = getcury(window); | ||
51 | 52 | ||
52 | if (x < UTIL_LOGO_COLS) | 53 | if ((x + (y - 2) / 2 < UTIL_LOGO_COLS - 7) || |
54 | ((y < 4) && (x < UTIL_LOGO_COLS))) | ||
53 | return; | 55 | return; |
54 | |||
55 | const int y = getcury(window); | ||
56 | 56 | ||
57 | wmove(window, y, x); | 57 | wmove(window, y, x); |
58 | wprintw(window, "%s", info); | 58 | wprintw(window, "%s", info); |