mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r16840) -Codechange: Small merge in town directory widget content method.
This commit is contained in:
parent
99215c5010
commit
6767a59827
|
@ -647,14 +647,9 @@ public:
|
||||||
{
|
{
|
||||||
Dimension d = {0, 0};
|
Dimension d = {0, 0};
|
||||||
switch (widget) {
|
switch (widget) {
|
||||||
case TDW_SORTNAME: {
|
case TDW_SORTNAME:
|
||||||
d = GetStringBoundingBox(STR_SORT_BY_NAME);
|
|
||||||
d.width += WD_SORTBUTTON_ARROW_WIDTH * 2; // Doubled since the word is centered, also looks nice.
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case TDW_SORTPOPULATION: {
|
case TDW_SORTPOPULATION: {
|
||||||
d = GetStringBoundingBox(STR_SORT_BY_POPULATION);
|
d = GetStringBoundingBox(this->nested_array[widget]->widget_data);
|
||||||
d.width += WD_SORTBUTTON_ARROW_WIDTH * 2; // Doubled since the word is centered, also looks nice.
|
d.width += WD_SORTBUTTON_ARROW_WIDTH * 2; // Doubled since the word is centered, also looks nice.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue