diff options
author | frosch <frosch@openttd.org> | 2012-11-13 21:46:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-13 21:46:19 +0000 |
commit | 17025fa6ea110f0db0b1c2e29b7615b21c2f5a50 (patch) | |
tree | e172f8a486ffd070f0a04406e46d74b24a68348c /src/misc_gui.cpp | |
parent | 8cd77b6f6eb0e82ebcb4c0197786eeea08dd0263 (diff) | |
download | openttd-17025fa6ea110f0db0b1c2e29b7615b21c2f5a50.tar.xz |
(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 630b75013..b99440230 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -773,7 +773,7 @@ void QueryString::HandleEditBox(Window *w, int wid) } } -void QueryString::DrawEditBox(Window *w, int wid) +void QueryString::DrawEditBox(const Window *w, int wid) const { const NWidgetBase *wi = w->GetWidget<NWidgetBase>(wid); @@ -818,11 +818,6 @@ void QueryStringBaseWindow::HandleEditBox(int wid) this->QueryString::HandleEditBox(this, wid); } -void QueryStringBaseWindow::DrawEditBox(int wid) -{ - this->QueryString::DrawEditBox(this, wid); -} - void QueryStringBaseWindow::OnOpenOSKWindow(int wid) { ShowOnScreenKeyboard(this, wid, 0, 0); @@ -870,13 +865,6 @@ struct QueryStringWindow : public QueryStringBaseWindow } } - virtual void OnPaint() - { - this->DrawWidgets(); - - this->DrawEditBox(WID_QS_TEXT); - } - virtual void SetStringParameters(int widget) const { if (widget == WID_QS_CAPTION) SetDParam(0, this->caption); |