From c05df5b0517018d0037b8ad6a2464384713b863a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 18 Feb 2008 13:19:57 +0000 Subject: [PATCH] (svn r12175) -Fix (r12174): Ensure the patches window is centred properly. --- src/settings_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 15b41b32ca..34790acc0e 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -892,6 +892,9 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e) /* 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;