# HG changeset patch # User Peter Nelson # Date 2024-01-16 20:50:46 # Node ID 894859d2ac0bb4054557e9bfc270a5f9f19787ae # Parent d198cbca9df8df6cd743b1d76f5e0c8bd87b90a6 Fix 884b9e66: No need to include extra pixel for pressed state. (#11803) diff --git a/src/widget.cpp b/src/widget.cpp --- a/src/widget.cpp +++ b/src/widget.cpp @@ -3341,7 +3341,7 @@ std::unique_ptr MakeCompany 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. */