Mercurial > hg > openttd
changeset 8594:2ed0f71a87ff draft
(svn r12175) -Fix (r12174): Ensure the patches window is centred properly.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Mon, 18 Feb 2008 13:19:57 +0000 |
parents | 90ffef351faa |
children | 1a405a547734 |
files | src/settings_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -892,6 +892,9 @@ /* Resize the window to fit the largest patch tab */ ResizeWindowForWidget(w, PATCHSEL_OPTIONSPANEL, 0, patches_max * 11); + /* Recentre the window for the new size */ + w->top = w->top - (patches_max * 11) / 2; + w->LowerWidget(4); } break;