Fix width of left panel in slots window when using UI scaling

See: #515
pull/519/head
Jonathan G Rennison 1 year ago
parent a6ba3de7e9
commit d5c651dc0b

@ -3652,7 +3652,7 @@ private:
uint ComputeSlotInfoSize()
{
this->column_size[VGC_NAME] = GetStringBoundingBox(STR_GROUP_ALL_TRAINS);
this->column_size[VGC_NAME].width = std::max(170u, this->column_size[VGC_NAME].width);
this->column_size[VGC_NAME].width = std::max((170u * FONT_HEIGHT_NORMAL) / 10u, this->column_size[VGC_NAME].width);
this->tiny_step_height = this->column_size[VGC_NAME].height;
SetDParamMaxValue(0, 9999, 3, FS_SMALL);

Loading…
Cancel
Save