shithub: choc

Download patch

ref: d4ef7c37721ee261ac23305fd52239a91e58250a
parent: 954eeae87efa9967164ce3c0543c45b823c40a21
author: Simon Howard <[email protected]>
date: Fri Apr 8 20:27:13 EDT 2011

Fix action area minimum width calculation.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2324

--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -227,7 +227,7 @@
     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 @@
         if (widget != NULL)
         {
             TXT_CalcWidgetSize(widget);
-            *w += widget->w + 1;
+            *w += widget->w;
 
             if (widget->h > *h)
             {