(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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user