From 9acd46841deb91d743fb2a0e68fcb6a09e5593c1 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 31 Dec 2011 13:43:19 +0000 Subject: [PATCH] Allow up to 35x13 chars in verbose messages (including lua messages). Fixes #467. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1883 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows.c b/src/windows.c index 3e0ac115..a75b9755 100644 --- a/src/windows.c +++ b/src/windows.c @@ -1132,7 +1132,7 @@ void Warning_message(char * message) Display_cursor(); } -/// Window that shows a big message (up to 34x12), and waits for a click on OK. +/// Window that shows a big message (up to 35x13), and waits for a click on OK. /// On call: Cursor must be displayed /// On exit: Cursor is displayed void Verbose_message(const char *caption, const char * message ) @@ -1148,7 +1148,7 @@ void Verbose_message(const char *caption, const char * message ) Open_window(300,160,caption); // Word-wrap the message - for (line=0; line < 12 && *message!='\0'; line++) + for (line=0; line < 13 && *message!='\0'; line++) { last_space = -1; for (nb_char=0; nb_char<35 && message[nb_char]!='\0'; nb_char++)