From a37ca47882479e0f5b1461053993302e31ce568d Mon Sep 17 00:00:00 2001 From: frosch Date: Fri, 27 Nov 2009 16:18:03 +0000 Subject: (svn r18305) -Codechange: Replace some 2s with WD_FRAMERECT_(LEFT|RIGHT). --- src/widgets/dropdown.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index f2a7b80dd..80959f155 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -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); } /** -- cgit v1.2.3-70-g09d2