* Compute height given a number of columns. * @param num_columns Number of columns. * @return Needed height for displaying the smallmap legends in pixels. */
| 714 | * @return Needed height for displaying the smallmap legends in pixels. |
| 715 | */ |
| 716 | inline uint GetLegendHeight(uint num_columns) const |
| 717 | { |
| 718 | return WidgetDimensions::scaled.framerect.Vertical() + |
| 719 | this->GetNumberRowsLegend(num_columns) * GetCharacterHeight(FS_SMALL); |
| 720 | } |
| 721 | |
| 722 | /** |
| 723 | * Get a bitmask for company links to be displayed. Usually this will be |
no test coverage detected