Changeset - r28255:2fb69767d82f
[Not reviewed]
master
0 2 0
Peter Nelson - 12 months ago 2023-11-29 12:35:00
peter1138@openttd.org
Fix: Don't implicitly ReInit all windows after updating the character width cache.

This caused duplicate ReInit when changing interface scale.
2 files changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -1406,8 +1406,6 @@ void LoadStringWidthTable(bool monospace
 
			_stringwidth_table[fs][i] = GetGlyphWidth(fs, i + 32);
 
		}
 
	}
 

	
 
	ReInitAllWindows(false);
 
}
 

	
 
/**
src/settings_table.cpp
Show inline comments
 
@@ -270,6 +270,7 @@ static void ZoomMinMaxChanged(int32_t)
 
		_gui_zoom = _settings_client.gui.zoom_min;
 
		UpdateCursorSize();
 
		LoadStringWidthTable();
 
		ReInitAllWindows(true);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)