(svn r22310) -Codechange: Derive DropDownListCharStringItem from DropDownListStringItem.

This commit is contained in:
frosch
2011-04-10 14:56:14 +00:00
parent 60b19a1344
commit c11930347c
2 changed files with 8 additions and 13 deletions

View File

@@ -44,14 +44,10 @@ StringID DropDownListParamStringItem::String() const
return this->string;
}
uint DropDownListCharStringItem::Width() const
StringID DropDownListCharStringItem::String() const
{
return GetStringBoundingBox(this->string).width;
}
void DropDownListCharStringItem::Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
{
DrawString(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, top, this->string, sel ? TC_WHITE : TC_BLACK);
SetDParamStr(0, this->raw_string);
return this->string;
}
/**