(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().

This commit is contained in:
alberth
2010-11-26 15:22:18 +00:00
parent 61637f493a
commit f5c6fd1a25
34 changed files with 4 additions and 274 deletions

View File

@@ -470,11 +470,6 @@ public:
}
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void OnClick(Point pt, int widget, int click_count)
{
switch (widget) {
@@ -1234,11 +1229,6 @@ public:
if (widget == IDW_DROPDOWN_CRITERIA) SetDParam(0, IndustryDirectoryWindow::sorter_names[this->industries.SortType()]);
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void DrawWidget(const Rect &r, int widget) const
{
switch (widget) {
@@ -2585,11 +2575,6 @@ struct IndustryCargoesWindow : public Window {
}
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void OnResize()
{
this->vscroll->SetCapacityFromWidget(this, ICW_PANEL);