From d4ef7c37721ee261ac23305fd52239a91e58250a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 9 Apr 2011 00:27:13 +0000 Subject: Fix action area minimum width calculation. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2324 --- textscreen/txt_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index ee668175..cd8a6c7a 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -227,7 +227,7 @@ static void CalcActionAreaSize(txt_window_t *window, txt_widget_t *widget; int i; - *w = 1; + *w = 0; *h = 0; // Calculate the width of all the action widgets and use this @@ -240,7 +240,7 @@ static void CalcActionAreaSize(txt_window_t *window, if (widget != NULL) { TXT_CalcWidgetSize(widget); - *w += widget->w + 1; + *w += widget->w; if (widget->h > *h) { -- cgit v1.2.3