Changeset - r28609:bfa72e17dc1e
[Not reviewed]
master
0 1 0
Peter Nelson - 10 months ago 2024-01-29 22:01:22
peter1138@openttd.org
Fix: Sandbox window does not reduce height when interface scale is reduced. (#11924)

line_height was only ever made larger, and icon.height ignored.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/cheat_gui.cpp
Show inline comments
 
@@ -333,7 +333,7 @@ struct CheatWindow : Window {
 
			}
 
		}
 

	
 
		this->line_height = std::max<uint>(this->line_height, SETTING_BUTTON_HEIGHT);
 
		this->line_height = std::max<uint>(this->icon.height, SETTING_BUTTON_HEIGHT);
 
		this->line_height = std::max<uint>(this->line_height, GetCharacterHeight(FS_NORMAL)) + WidgetDimensions::scaled.framerect.Vertical();
 

	
 
		size->width = width + WidgetDimensions::scaled.hsep_wide * 2 + SETTING_BUTTON_WIDTH;
0 comments (0 inline, 0 general)