summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 19:31:47 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 19:31:47 +0000
commit93fe44a3c561e357313af0f8332a697b46812474 (patch)
tree815d6455f0947e44d67f175b86832b1932c3e96b /src/company_gui.cpp
parent8a758beec30dcf3c43d69d5adafbac59f296b9f1 (diff)
downloadopenttd-93fe44a3c561e357313af0f8332a697b46812474.tar.xz
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index cc1af0e53..1d7187be9 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -399,10 +399,10 @@ public:
return true;
}
- void Draw(int x, int y, uint width, uint height, bool sel, int bg_colour) const
+ void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
{
- DrawSprite(SPR_VEH_BUS_SIDE_VIEW, PALETTE_RECOLOUR_START + this->result, x + 16, y + 7);
- DrawStringTruncated(x + 32, y + 3, this->String(), sel ? TC_WHITE : TC_BLACK, width - 30);
+ DrawSprite(SPR_VEH_BUS_SIDE_VIEW, PALETTE_RECOLOUR_START + this->result, left + 16, top + 7);
+ DrawString(left + 32, right - 2, top + 3, this->String(), sel ? TC_WHITE : TC_BLACK);
}
};