summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-27 16:35:34 +0000
committerfrosch <frosch@openttd.org>2009-11-27 16:35:34 +0000
commit5c6b7fd88ded50bf8feff83df2e971b2065dc28d (patch)
tree594429cb5528517062e500fa53f4b4c824b53960 /src
parentb4626547b50013f79da3946af9d3dfae8c305e72 (diff)
downloadopenttd-5c6b7fd88ded50bf8feff83df2e971b2065dc28d.tar.xz
(svn r18307) -Fix: some coding style.
Diffstat (limited to 'src')
-rw-r--r--src/toolbar_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 8e7f574d1..51230b8d0 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -130,16 +130,16 @@ public:
uint Width() const
{
- return DropDownListStringItem::Width() + checkmark_width;
+ return DropDownListStringItem::Width() + this->checkmark_width;
}
void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
{
bool rtl = _dynlang.text_dir == TD_RTL;
- if (checked) {
+ if (this->checked) {
DrawString(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, top, STR_JUST_CHECKMARK, sel ? TC_WHITE : TC_BLACK);
}
- DrawString(left + WD_FRAMERECT_LEFT + (rtl ? 0 : checkmark_width), right - WD_FRAMERECT_RIGHT - (rtl ? checkmark_width : 0), top, this->String(), sel ? TC_WHITE : TC_BLACK);
+ DrawString(left + WD_FRAMERECT_LEFT + (rtl ? 0 : this->checkmark_width), right - WD_FRAMERECT_RIGHT - (rtl ? this->checkmark_width : 0), top, this->String(), sel ? TC_WHITE : TC_BLACK);
}
};
@@ -162,7 +162,7 @@ public:
uint Width() const
{
char buffer[512];
- CompanyID company = (CompanyID)result;
+ CompanyID company = (CompanyID)this->result;
SetDParam(0, company);
SetDParam(1, company);
GetString(buffer, STR_COMPANY_NAME_COMPANY_NUM, lastof(buffer));
@@ -171,7 +171,7 @@ public:
void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
{
- CompanyID company = (CompanyID)result;
+ CompanyID company = (CompanyID)this->result;
bool rtl = _dynlang.text_dir == TD_RTL;
/* It's possible the company is deleted while the dropdown is open */