* Get the colour for DrawString-subroutines which matches the colour of the company. * @param company Company to get the colour of. * @return Colour of \a company. */
| 151 | * @return Colour of \a company. |
| 152 | */ |
| 153 | TextColour GetDrawStringCompanyColour(CompanyID company) |
| 154 | { |
| 155 | if (!Company::IsValidID(company)) return GetColourGradient(COLOUR_WHITE, SHADE_NORMAL).ToTextColour(); |
| 156 | return GetColourGradient(_company_colours[company], SHADE_NORMAL).ToTextColour(); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Get the palette for recolouring with a company colour. |
no test coverage detected