summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-09 18:20:03 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-03-10 09:20:11 +0000
commit811bf2262019b855c9005793e5efc725ac77a7b3 (patch)
tree51e37f4cafa186c4a05331fa45fb7515497467d0 /src/toolbar_gui.cpp
parentcc5f17561571b45b52e7406fb66051446f8cceb4 (diff)
downloadopenttd-811bf2262019b855c9005793e5efc725ac77a7b3.tar.xz
Codechange: Use Colours type instead of byte.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 5567c5580..e0f7b0244 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -104,7 +104,7 @@ public:
return DropDownListStringItem::Width() + this->checkmark_width;
}
- void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
+ void Draw(int left, int right, int top, int bottom, bool sel, Colours bg_colour) const
{
bool rtl = _current_text_dir == TD_RTL;
if (this->checked) {
@@ -149,7 +149,7 @@ public:
return max(max(this->icon_size.height, this->lock_size.height) + 2U, (uint)FONT_HEIGHT_NORMAL);
}
- void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
+ void Draw(int left, int right, int top, int bottom, bool sel, Colours bg_colour) const
{
CompanyID company = (CompanyID)this->result;
bool rtl = _current_text_dir == TD_RTL;