mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r12175) -Fix (r12174): Ensure the patches window is centred properly.
This commit is contained in:
parent
b3f304cde3
commit
a0fda5b969
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user