From: ewt Date: Wed, 17 Sep 1997 02:12:38 +0000 (+0000) Subject: halved the penalty for short lines X-Git-Tag: r0-12~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8833c01fa1a458f969ca8957117366db84feafdf;p=thirdparty%2Fnewt.git halved the penalty for short lines --- diff --git a/textbox.c b/textbox.c index ac8e51d..4a4757d 100644 --- a/textbox.c +++ b/textbox.c @@ -99,7 +99,7 @@ static void doReflow(char * text, char ** resultPtr, int width, int * badness, } if (end - text < (width / 2)) - howbad += (width / 2) - (end - text); + howbad += ((width / 2) - (end - text)) / 2; text = end; if (*text) text++; } else {