(svn r18305) -Codechange: Replace some 2s with WD_FRAMERECT_(LEFT|RIGHT).

This commit is contained in:
frosch
2009-11-27 16:18:03 +00:00
parent 32a97b05bf
commit 372aa6ff5f
2 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ uint DropDownListStringItem::Width() const
void DropDownListStringItem::Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
{
DrawString(left + 2, right - 2, top, this->String(), sel ? TC_WHITE : TC_BLACK);
DrawString(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, top, this->String(), sel ? TC_WHITE : TC_BLACK);
}
StringID DropDownListParamStringItem::String() const
@@ -53,7 +53,7 @@ uint DropDownListCharStringItem::Width() const
void DropDownListCharStringItem::Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
{
DrawString(left + 2, right - 2, top, this->string, sel ? TC_WHITE : TC_BLACK);
DrawString(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, top, this->string, sel ? TC_WHITE : TC_BLACK);
}
/**