summaryrefslogtreecommitdiff
path: root/src/newgrf_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/newgrf_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/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 1b265f4a8..2558336f6 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -274,9 +274,9 @@ 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
{
- DoDrawStringTruncated(_grf_preset_list[this->result], x + 2, y, sel ? TC_WHITE : TC_BLACK, x + width);
+ DrawString(left + 2, right + 2, top, _grf_preset_list[this->result], sel ? TC_WHITE : TC_BLACK);
}
};