mirror of https://github.com/OpenTTD/OpenTTD
Fix: Don't implicitly ReInit all windows after updating the character width cache.
This caused duplicate ReInit when changing interface scale.pull/11562/head
parent
54ba757910
commit
e2425b72c1
|
@ -1406,8 +1406,6 @@ void LoadStringWidthTable(bool monospace)
|
||||||
_stringwidth_table[fs][i] = GetGlyphWidth(fs, i + 32);
|
_stringwidth_table[fs][i] = GetGlyphWidth(fs, i + 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReInitAllWindows(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -270,6 +270,7 @@ static void ZoomMinMaxChanged(int32_t)
|
||||||
_gui_zoom = _settings_client.gui.zoom_min;
|
_gui_zoom = _settings_client.gui.zoom_min;
|
||||||
UpdateCursorSize();
|
UpdateCursorSize();
|
||||||
LoadStringWidthTable();
|
LoadStringWidthTable();
|
||||||
|
ReInitAllWindows(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue