Changeset - r28478:894859d2ac0b
[Not reviewed]
master
0 1 0
Peter Nelson - 3 months ago 2024-01-16 20:50:46
peter1138@openttd.org
Fix 884b9e66: No need to include extra pixel for pressed state. (#11803)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -3341,7 +3341,7 @@ std::unique_ptr<NWidgetBase> 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. */
0 comments (0 inline, 0 general)