From a89b5721a8bff2a601161a1dc456f588c065b0eb Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 May 2008 12:48:06 +0000 Subject: (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. --- src/town_gui.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/town_gui.cpp') diff --git a/src/town_gui.cpp b/src/town_gui.cpp index bb59b71bb..d8d32153c 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -167,7 +167,7 @@ struct TownAuthorityWindow : Window { this->SetWidgetDisabledState(6, this->sel_index == -1); SetDParam(0, this->window_number); - DrawWindowWidgets(this); + this->DrawWidgets(); DrawString(2, 15, STR_2023_TRANSPORT_COMPANY_RATINGS, TC_FROMSTRING); @@ -310,7 +310,7 @@ static void TownViewWndProc(Window *w, WindowEvent *e) w->SetWidgetDisabledState(TVW_CHANGENAME, _networking && !_network_server); SetDParam(0, t->index); - DrawWindowWidgets(w); + w->DrawWidgets(); SetDParam(0, t->population); SetDParam(1, t->num_houses); @@ -324,7 +324,7 @@ static void TownViewWndProc(Window *w, WindowEvent *e) SetDParam(1, t->max_mail); DrawString(2, 127, STR_200E_MAIL_LAST_MONTH_MAX, TC_FROMSTRING); - DrawWindowViewport(w); + w->DrawViewport(); break; case WE_CLICK: @@ -489,8 +489,8 @@ static void TownDirectoryWndProc(Window *w, WindowEvent *e) SetVScrollCount(w, _num_town_sort); - DrawWindowWidgets(w); - DrawSortButtonState(w, (_town_sort_order <= 1) ? TDW_SORTNAME : TDW_SORTPOPULATION, _town_sort_order & 1 ? SBS_DOWN : SBS_UP); + w->DrawWidgets(); + w->DrawSortButtonState((_town_sort_order <= 1) ? TDW_SORTNAME : TDW_SORTPOPULATION, _town_sort_order & 1 ? SBS_DOWN : SBS_UP); { int n = 0; @@ -626,7 +626,7 @@ static void ScenEditTownGenWndProc(Window *w, WindowEvent *e) { switch (e->event) { case WE_PAINT: - DrawWindowWidgets(w); + w->DrawWidgets(); break; case WE_CREATE: -- cgit v1.2.3-54-g00ecf