mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 12:44:10 +01:00
Codechange: Use parameterised GetString() in network-related windows. (#13635)
This commit is contained in:
@@ -725,9 +725,9 @@ int GetStringHeight(StringID str, int maxw)
|
||||
* @param maxw maximum string width
|
||||
* @return number of lines of string when it is drawn
|
||||
*/
|
||||
int GetStringLineCount(StringID str, int maxw)
|
||||
int GetStringLineCount(std::string_view str, int maxw)
|
||||
{
|
||||
Layouter layout(GetString(str), maxw);
|
||||
Layouter layout(str, maxw);
|
||||
return (uint)layout.size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user