Mercurial > hg > openttd
changeset 12577:7d27f0e5a0cd draft
(svn r17017) -Fix (r17008): Setup padding for WWT_MATRIX.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 01 Aug 2009 10:06:52 +0000 |
parents | 7cd9935de75c |
children | 8d1801a245ad |
files | src/widget.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/widget.cpp +++ b/src/widget.cpp @@ -1980,7 +1980,6 @@ 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 @@ 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;