From 93fe44a3c561e357313af0f8332a697b46812474 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Mar 2009 19:31:47 +0000 Subject: (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. --- src/newgrf_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf_gui.cpp') 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); } }; -- cgit v1.2.3-54-g00ecf