1
0
Fork 0

(svn r22869) -Codechange: Use the same constant to set the minimum height of all widgets in the windows title bar

release/1.2
planetmaker 2011-09-02 16:05:19 +00:00
parent a2ebe437e6
commit d0cff8b38b
1 changed files with 4 additions and 4 deletions

View File

@ -1996,19 +1996,19 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data,
case WWT_STICKYBOX: case WWT_STICKYBOX:
this->SetFill(0, 0); 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); this->SetDataTip(STR_NULL, STR_TOOLTIP_STICKY);
break; break;
case WWT_SHADEBOX: case WWT_SHADEBOX:
this->SetFill(0, 0); 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); this->SetDataTip(STR_NULL, STR_TOOLTIP_SHADE);
break; break;
case WWT_DEBUGBOX: case WWT_DEBUGBOX:
this->SetFill(0, 0); 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); this->SetDataTip(STR_NULL, STR_TOOLTIP_DEBUG);
break; break;
@ -2020,7 +2020,7 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data,
case WWT_CLOSEBOX: case WWT_CLOSEBOX:
this->SetFill(0, 0); 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); this->SetDataTip(STR_BLACK_CROSS, STR_TOOLTIP_CLOSE_WINDOW);
break; break;