1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Update members of FontStyle

This commit is contained in:
Gymnasiast
2025-10-16 20:20:46 +02:00
parent 124352c922
commit 0ec4e3353b
52 changed files with 140 additions and 140 deletions

View File

@@ -729,7 +729,7 @@ void CustomListView::PaintSeparator(RenderTarget& rt, const ScreenCoordsXY& pos,
// Get string dimensions
utf8 stringBuffer[512]{};
FormatStringLegacy(stringBuffer, sizeof(stringBuffer), STR_STRING, ft.Data());
int32_t categoryStringHalfWidth = (GfxGetStringWidth(stringBuffer, FontStyle::Medium) / 2) + 4;
int32_t categoryStringHalfWidth = (GfxGetStringWidth(stringBuffer, FontStyle::medium) / 2) + 4;
int32_t strLeft = centreX - categoryStringHalfWidth;
int32_t strRight = centreX + categoryStringHalfWidth;

View File

@@ -159,8 +159,8 @@ namespace OpenRCT2::Scripting
DukValue measureText(const std::string& text)
{
auto width = GfxGetStringWidth(text, FontStyle::Medium);
auto height = StringGetHeightRaw(text.c_str(), FontStyle::Medium);
auto width = GfxGetStringWidth(text, FontStyle::medium);
auto height = StringGetHeightRaw(text.c_str(), FontStyle::medium);
return ToDuk<ScreenSize>(_ctx, { width, height });
}