diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 12:48:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 12:48:06 +0000 |
commit | a89b5721a8bff2a601161a1dc456f588c065b0eb (patch) | |
tree | 95ff2c47f7b8b827b734ad75a798bd9257a80067 /src/industry_gui.cpp | |
parent | 7f6ccdc624851aaecce81ccead4f6829925df8d9 (diff) | |
download | openttd-a89b5721a8bff2a601161a1dc456f588c065b0eb.tar.xz |
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 2fb18da3e..94818c72b 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -204,7 +204,7 @@ public: SetVScrollCount(this, this->count); - DrawWindowWidgets(this); + this->DrawWidgets(); /* and now with the matrix painting */ for (byte i = 0; i < this->vscroll.cap && ((i + this->vscroll.pos) < this->count); i++) { @@ -481,7 +481,7 @@ public: bool has_accept = false; SetDParam(0, this->window_number); - DrawWindowWidgets(this); + this->DrawWidgets(); if (HasBit(ind->callback_flags, CBM_IND_PRODUCTION_CARGO_ARRIVAL) || HasBit(ind->callback_flags, CBM_IND_PRODUCTION_256_TICKS)) { for (byte j = 0; j < lengthof(i->accepts_cargo); j++) { @@ -564,7 +564,7 @@ public: return; } - DrawWindowViewport(this); + this->DrawViewport(); } virtual void OnClick(Point pt, int widget) @@ -840,8 +840,8 @@ static void IndustryDirectoryWndProc(Window *w, WindowEvent *e) SetVScrollCount(w, _num_industry_sort); - DrawWindowWidgets(w); - DrawSortButtonState(w, IDW_SORTBYNAME + (_industry_sort_order >> 1), _industry_sort_order & 1 ? SBS_DOWN : SBS_UP); + w->DrawWidgets(); + w->DrawSortButtonState(IDW_SORTBYNAME + (_industry_sort_order >> 1), _industry_sort_order & 1 ? SBS_DOWN : SBS_UP); uint pos = w->vscroll.pos; int n = 0; |