Changeset - r28002:db9e4cb3e8fb
[Not reviewed]
master
0 1 0
Peter Nelson - 14 months ago 2023-10-19 17:06:47
peter1138@openttd.org
Fix: Scale minimum width for server name by interface scale. (#11381)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_gui.cpp
Show inline comments
 
@@ -150,7 +150,7 @@ public:
 
		NWidgetBase *child_wid = this->head->next;
 
		/* The first and last widget are always visible, determine which other should be visible */
 
		for (uint i = 1; i < lengthof(this->visible) - 1; i++) {
 
			if (given_width > MINIMUM_NAME_WIDTH_BEFORE_NEW_HEADER + child_wid->smallest_x && this->visible[i - 1]) {
 
			if (given_width > ScaleGUITrad(MINIMUM_NAME_WIDTH_BEFORE_NEW_HEADER) + child_wid->smallest_x && this->visible[i - 1]) {
 
				this->visible[i] = true;
 
				given_width -= child_wid->smallest_x;
 
			} else {
0 comments (0 inline, 0 general)