summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/company_cmd.cpp6
-rw-r--r--src/company_gui.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index b39bed5fc..3cec65c44 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -116,10 +116,10 @@ void SetLocalCompany(CompanyID new_company)
* @param company Company to get the colour of.
* @return Colour of \a company.
*/
-uint16 GetDrawStringCompanyColour(CompanyID company)
+TextColour GetDrawStringCompanyColour(CompanyID company)
{
- if (!Company::IsValidID(company)) return _colour_gradient[COLOUR_WHITE][4] | TC_IS_PALETTE_COLOUR;
- return (_colour_gradient[_company_colours[company]][4]) | TC_IS_PALETTE_COLOUR;
+ if (!Company::IsValidID(company)) return (TextColour)_colour_gradient[COLOUR_WHITE][4] | TC_IS_PALETTE_COLOUR;
+ return (TextColour)_colour_gradient[_company_colours[company]][4] | TC_IS_PALETTE_COLOUR;
}
/**
diff --git a/src/company_gui.h b/src/company_gui.h
index 30e58becf..31033d4ba 100644
--- a/src/company_gui.h
+++ b/src/company_gui.h
@@ -13,8 +13,9 @@
#define COMPANY_GUI_H
#include "company_type.h"
+#include "gfx_type.h"
-uint16 GetDrawStringCompanyColour(CompanyID company);
+TextColour GetDrawStringCompanyColour(CompanyID company);
void DrawCompanyIcon(CompanyID c, int x, int y);
void ShowCompanyStations(CompanyID company);