Change: Add optional text labels to slider widget.

This commit is contained in:
Peter Nelson
2022-10-23 15:45:47 +01:00
committed by PeterN
parent f0ae111c4a
commit 123983743f
6 changed files with 29 additions and 11 deletions

View File

@@ -915,12 +915,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);
}
/**