summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textscreen/txt_window.c4
1 files 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)
{