diff options
author | planetmaker <planetmaker@openttd.org> | 2011-09-02 16:05:19 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2011-09-02 16:05:19 +0000 |
commit | d0cff8b38be3a349c785f2c7c2d21319a6f0fb00 (patch) | |
tree | 707f8247af8ca3c14bcc646630f3836bab37abd0 | |
parent | a2ebe437e6c11fede99ec3e2e39d5b80b1587a62 (diff) | |
download | openttd-d0cff8b38be3a349c785f2c7c2d21319a6f0fb00.tar.xz |
(svn r22869) -Codechange: Use the same constant to set the minimum height of all widgets in the windows title bar
-rw-r--r-- | src/widget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 6c699b533..39e1ce9be 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1996,19 +1996,19 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, case WWT_STICKYBOX: this->SetFill(0, 0); - this->SetMinimalSize(WD_STICKYBOX_WIDTH, 14); + this->SetMinimalSize(WD_STICKYBOX_WIDTH, WD_CAPTION_HEIGHT); this->SetDataTip(STR_NULL, STR_TOOLTIP_STICKY); break; case WWT_SHADEBOX: this->SetFill(0, 0); - this->SetMinimalSize(WD_SHADEBOX_TOP, 14); + this->SetMinimalSize(WD_SHADEBOX_TOP, WD_CAPTION_HEIGHT); this->SetDataTip(STR_NULL, STR_TOOLTIP_SHADE); break; case WWT_DEBUGBOX: this->SetFill(0, 0); - this->SetMinimalSize(WD_DEBUGBOX_TOP, 14); + this->SetMinimalSize(WD_DEBUGBOX_TOP, WD_CAPTION_HEIGHT); this->SetDataTip(STR_NULL, STR_TOOLTIP_DEBUG); break; @@ -2020,7 +2020,7 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, case WWT_CLOSEBOX: this->SetFill(0, 0); - this->SetMinimalSize(WD_CLOSEBOX_WIDTH, 14); + this->SetMinimalSize(WD_CLOSEBOX_WIDTH, WD_CAPTION_HEIGHT); this->SetDataTip(STR_BLACK_CROSS, STR_TOOLTIP_CLOSE_WINDOW); break; |