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 | 8b5421290027ab67cba25225111e3561ddd7af07 (patch) | |
tree | 95ff2c47f7b8b827b734ad75a798bd9257a80067 /src/settings_gui.cpp | |
parent | d8154e00ac8b0df7ad0ac94c90a393aa5096e573 (diff) | |
download | openttd-8b5421290027ab67cba25225111e3561ddd7af07.tar.xz |
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index bfa13eadf..3f9176eaf 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -194,7 +194,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e) SetDParam(8, SPECSTR_SCREENSHOT_START + _cur_screenshot_format); w->SetWidgetLoweredState(GAMEOPT_FULLSCREEN, _fullscreen); - DrawWindowWidgets(w); + w->DrawWidgets(); DrawString(20, 175, STR_OPTIONS_FULLSCREEN, TC_FROMSTRING); // fullscreen } break; @@ -565,7 +565,7 @@ public: virtual void OnPaint() { - DrawWindowWidgets(this); + this->DrawWidgets(); /* XXX - Disabled buttons in normal gameplay or during muliplayer as non server. * Bitshifted for each button to see if that bit is set. If it is set, the @@ -903,7 +903,7 @@ struct PatchesSelectionWindow : Window { uint i; /* Set up selected category */ - DrawWindowWidgets(this); + this->DrawWidgets(); x = 5; y = 47; @@ -1159,7 +1159,7 @@ struct CustomCurrencyWindow : Window { { int x; int y = 20; - DrawWindowWidgets(this); + this->DrawWidgets(); /* exchange rate */ DrawArrowButtons(10, y, 3, GB(this->click, 0, 2), true, true); |