forked from mirror/OpenTTD
(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.
This commit is contained in:
@@ -204,7 +204,6 @@ struct SignListWindow : QueryStringBaseWindow, SignList {
|
||||
{
|
||||
if (this->signs.NeedRebuild()) this->BuildSortSignList();
|
||||
this->DrawWidgets();
|
||||
if (!this->IsShaded()) this->DrawEditBox(WID_SIL_FILTER_TEXT);
|
||||
}
|
||||
|
||||
virtual void DrawWidget(const Rect &r, int widget) const
|
||||
@@ -523,12 +522,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
|
||||
}
|
||||
}
|
||||
|
||||
virtual void OnPaint()
|
||||
{
|
||||
this->DrawWidgets();
|
||||
if (!this->IsShaded()) this->DrawEditBox(WID_QES_TEXT);
|
||||
}
|
||||
|
||||
virtual void OnClick(Point pt, int widget, int click_count)
|
||||
{
|
||||
switch (widget) {
|
||||
|
Reference in New Issue
Block a user