diff options
author | rubidium <rubidium@openttd.org> | 2010-04-24 13:22:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-24 13:22:17 +0000 |
commit | fef77ca53e2d3a381889aecc6739053f1582143b (patch) | |
tree | 21d5e4021bbbbc6599cd130e3837503c41b7a3c1 /src/settings.cpp | |
parent | 3461430a34880d0db9ac2b5dc711e7dd876264f7 (diff) | |
download | openttd-fef77ca53e2d3a381889aecc6739053f1582143b.tar.xz |
(svn r19705) -Change: reinitialise the windows when changing the newgrf_developer_tools setting
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index a50c240c0..ae3e13c78 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -680,6 +680,18 @@ static bool RedrawScreen(int32 p1) } /** + * Reinitalise all windows, i.e. construct their windows + * from the begin. For example to show a particular button + * that was previously hidden. + * @param p1 ignored + */ +static bool ReinitWindows(int32 p1) +{ + ReInitAllWindows(); + return true; +} + +/** * Redraw the smallmap after a colour scheme change. * @param p1 Callback parameter. * @return Always true. |