Fix 884b9e66: No need to include extra pixel for pressed state. (#11803)

pull/642/head
Peter Nelson 5 months ago committed by GitHub
parent bde05ce79c
commit d005e8f8bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3341,7 +3341,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. */

Loading…
Cancel
Save