diff options
author | Simon Howard | 2011-04-09 00:27:13 +0000 |
---|---|---|
committer | Simon Howard | 2011-04-09 00:27:13 +0000 |
commit | d4ef7c37721ee261ac23305fd52239a91e58250a (patch) | |
tree | d45d8c160a8bae68ebe9c82c41fc8c5cdd947a47 | |
parent | 954eeae87efa9967164ce3c0543c45b823c40a21 (diff) | |
download | chocolate-doom-d4ef7c37721ee261ac23305fd52239a91e58250a.tar.gz chocolate-doom-d4ef7c37721ee261ac23305fd52239a91e58250a.tar.bz2 chocolate-doom-d4ef7c37721ee261ac23305fd52239a91e58250a.zip |
Fix action area minimum width calculation.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2324
-rw-r--r-- | textscreen/txt_window.c | 4 |
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) { |