summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-17 12:48:06 +0000
committerrubidium <rubidium@openttd.org>2008-05-17 12:48:06 +0000
commit8b5421290027ab67cba25225111e3561ddd7af07 (patch)
tree95ff2c47f7b8b827b734ad75a798bd9257a80067 /src/town_gui.cpp
parentd8154e00ac8b0df7ad0ac94c90a393aa5096e573 (diff)
downloadopenttd-8b5421290027ab67cba25225111e3561ddd7af07.tar.xz
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp12
1 files changed, 6 insertions, 6 deletions
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: