(svn r18267) -Codechange: make the music window big font aware

This commit is contained in:
rubidium
2009-11-24 13:14:48 +00:00
parent fe65c7f833
commit ea0fd4656a
53 changed files with 56 additions and 72 deletions

View File

@@ -1693,7 +1693,8 @@ Dimension NWidgetLeaf::closebox_dimension = {0, 0};
*/
NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, StringID tip) : NWidgetCore(tp, colour, 1, 1, data, tip)
{
this->SetIndex(index);
assert(index >= 0 || tp == WWT_LABEL || tp == WWT_TEXT);
if (index >= 0) this->SetIndex(index);
this->SetMinimalSize(0, 0);
this->SetResize(0, 0);