mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r17017) -Fix (r17008): Setup padding for WWT_MATRIX.
This commit is contained in:
parent
641e80798f
commit
602ac83d8e
@ -1980,7 +1980,6 @@ void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array)
|
||||
const Dimension *padding = NULL;
|
||||
switch (this->type) {
|
||||
case WWT_EMPTY:
|
||||
case WWT_MATRIX:
|
||||
case WWT_SCROLLBAR:
|
||||
case WWT_SCROLL2BAR:
|
||||
case WWT_HSCROLLBAR: {
|
||||
@ -1988,6 +1987,11 @@ void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array)
|
||||
padding = &extra;
|
||||
break;
|
||||
}
|
||||
case WWT_MATRIX: {
|
||||
static const Dimension extra = {WD_MATRIX_LEFT + WD_MATRIX_RIGHT, WD_MATRIX_TOP + WD_MATRIX_BOTTOM};
|
||||
padding = &extra;
|
||||
break;
|
||||
}
|
||||
case WWT_STICKYBOX: {
|
||||
static const Dimension extra = {WD_STICKYBOX_LEFT + WD_STICKYBOX_RIGHT, WD_STICKYBOX_TOP + WD_STICKYBOX_BOTTOM};
|
||||
padding = &extra;
|
||||
|
Loading…
Reference in New Issue
Block a user