From: Holger Schemel Date: Mon, 18 Nov 2024 19:25:17 +0000 (+0100) Subject: added disabling centered level info text if too long X-Git-Tag: 4.4.0.0-test-4~44 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=559e0dd94b5818b051e5159d811d385d8acf5935;p=rocksndiamonds.git added disabling centered level info text if too long --- diff --git a/src/screens.c b/src/screens.c index e13a4f9b..5794c2c6 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1087,6 +1087,10 @@ static void addLineOrTextToInfoBuffer(char **buffer, char *header, char *text, b if (strlen(*buffer) > 0) appendStringPrint(buffer, "\n\n"); + // do not use centered text if too long + if (strlen(text) > 80) + centered = FALSE; + // header always centered appendStringPrint(buffer, "# .centered: true\n");