summaryrefslogtreecommitdiff
path: root/src/intro_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-02 14:29:48 +0000
committerrubidium <rubidium@openttd.org>2007-12-02 14:29:48 +0000
commit527b72749d5160eceb6e5999c0f329701b14ee47 (patch)
treee58f8a4999ff6c34bc01aae8c8c413ceee96650c /src/intro_gui.cpp
parent50fced3c66b6af28856e3776ca0e7a0799cb9827 (diff)
downloadopenttd-527b72749d5160eceb6e5999c0f329701b14ee47.tar.xz
(svn r11555) -Codechange: use the new members introduced in r11551.
Diffstat (limited to 'src/intro_gui.cpp')
-rw-r--r--src/intro_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index 2961dc801..488ac2892 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -53,13 +53,13 @@ static inline void SetNewLandscapeType(byte landscape)
static void SelectGameWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
- case WE_CREATE: LowerWindowWidget(w, _opt_newgame.landscape + 8); break;
+ case WE_CREATE: w->LowerWidget(_opt_newgame.landscape + 8); break;
case WE_PAINT:
- SetWindowWidgetLoweredState(w, 8, _opt_newgame.landscape == LT_TEMPERATE);
- SetWindowWidgetLoweredState(w, 9, _opt_newgame.landscape == LT_ARCTIC);
- SetWindowWidgetLoweredState(w, 10, _opt_newgame.landscape == LT_TROPIC);
- SetWindowWidgetLoweredState(w, 11, _opt_newgame.landscape == LT_TOYLAND);
+ w->SetWidgetLoweredState(8, _opt_newgame.landscape == LT_TEMPERATE);
+ w->SetWidgetLoweredState(9, _opt_newgame.landscape == LT_ARCTIC);
+ w->SetWidgetLoweredState(10, _opt_newgame.landscape == LT_TROPIC);
+ w->SetWidgetLoweredState(11, _opt_newgame.landscape == LT_TOYLAND);
SetDParam(0, STR_6801_EASY + _opt_newgame.diff_level);
DrawWindowWidgets(w);
break;
@@ -85,7 +85,7 @@ static void SelectGameWndProc(Window *w, WindowEvent *e)
}
break;
case 8: case 9: case 10: case 11:
- RaiseWindowWidget(w, _opt_newgame.landscape + 8);
+ w->RaiseWidget(_opt_newgame.landscape + 8);
SetNewLandscapeType(e->we.click.widget - 8);
break;
case 12: ShowGameOptions(); break;