Merge branch 'master' into jgrpp

This commit is contained in:
Jonathan G Rennison
2024-01-18 22:26:46 +00:00
2 changed files with 13 additions and 8 deletions

View File

@@ -3423,7 +3423,7 @@ std::unique_ptr<NWidgetBase> MakeCompanyButtonRows(WidgetID widget_first, Widget
Dimension sprite_size = GetSpriteSize(SPR_COMPANY_ICON, nullptr, ZOOM_LVL_OUT_4X);
sprite_size.width += WidgetDimensions::unscaled.matrix.Horizontal();
sprite_size.height += WidgetDimensions::unscaled.matrix.Vertical() + 1; // 1 for the 'offset' of being pressed
sprite_size.height += WidgetDimensions::unscaled.matrix.Vertical();
for (WidgetID widnum = widget_first; widnum <= widget_last; widnum++) {
/* Ensure there is room in 'hor' for another button. */