Viewport route step markers are now variable size to match font/text

See: #410
This commit is contained in:
Jonathan G Rennison
2022-08-20 11:33:04 +01:00
parent 8c0eca28a8
commit 8688840e24
4 changed files with 64 additions and 32 deletions

View File

@@ -935,12 +935,12 @@ Dimension GetStringBoundingBox(const std::string &str, FontSize start_fontsize)
* @param strid String to examine.
* @return Width and height of the bounding box for the string in pixels.
*/
Dimension GetStringBoundingBox(StringID strid)
Dimension GetStringBoundingBox(StringID strid, FontSize start_fontsize)
{
char buffer[DRAW_STRING_BUFFER];
GetString(buffer, strid, lastof(buffer));
return GetStringBoundingBox(buffer);
return GetStringBoundingBox(buffer, start_fontsize);
}
/**