commit d4ef7c37721ee261ac23305fd52239a91e58250a
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Apr 9 00:27:13 2011 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sat Apr 9 00:27:13 2011 +0000
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)
{