From: Mischa POSLAWSKY Date: Sun, 4 Mar 2007 10:17:43 +0000 (+0100) Subject: resize message window horizontally to available space X-Git-Url: http://git.shiar.nl/netris.git/commitdiff_plain/7add4dc35888082cd4c77444dc72b9cfa1e6ec7f resize message window horizontally to available space --- diff --git a/curses.c b/curses.c index 5856f65..2c4b87c 100644 --- a/curses.c +++ b/curses.c @@ -293,7 +293,7 @@ void InitFields(void) messageWidth = MIN(x - messageXPos - 2, MSG_WIDTH); messageHeight = MIN(y - messageYPos - 1, MSG_HEIGHT); if (messageHeight <= 0) { - messageWidth = 27; + messageWidth = MIN(x - statusXPos - 18, 27); messageHeight = y - 3; messageXPos = statusXPos + 16; messageYPos = 2;