summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-13 13:44:58 +0000
committerfrosch <frosch@openttd.org>2013-10-13 13:44:58 +0000
commit27a77d2c0991a1bff10a225e00e2227172bb1ee3 (patch)
treeb306215829f089de7a155bc0d318530488f112c0 /src/widget.cpp
parentdcec8b9abdf4c7fb87d6aa29e407bdf182ab6864 (diff)
downloadopenttd-27a77d2c0991a1bff10a225e00e2227172bb1ee3.tar.xz
(svn r25861) -Fix [FS#5760]: Scale linkgraph legend according to text dimensions.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 9d6406c3b..71448f612 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -2842,7 +2842,7 @@ NWidgetBase *MakeCompanyButtonRows(int *biggest_index, int widget_first, int wid
NWidgetBackground *panel = new NWidgetBackground(WWT_PANEL, COLOUR_GREY, widnum);
panel->SetMinimalSize(sprite_size.width, sprite_size.height);
- panel->SetFill(1, 0);
+ panel->SetFill(1, 1);
panel->SetResize(1, 0);
panel->SetDataTip(0x0, button_tooltip);
hor->Add(panel);
@@ -2854,7 +2854,7 @@ NWidgetBase *MakeCompanyButtonRows(int *biggest_index, int widget_first, int wid
if (hor_length > 0 && hor_length < max_length) {
/* Last row is partial, add a spacer at the end to force all buttons to the left. */
NWidgetSpacer *spc = new NWidgetSpacer(sprite_size.width, sprite_size.height);
- spc->SetFill(1, 0);
+ spc->SetFill(1, 1);
spc->SetResize(1, 0);
hor->Add(spc);
}