From 6340cd7e516b983c7aa8379a098e25bcdb64ef81 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 16 Oct 2025 20:05:20 +0200 Subject: [PATCH] Update members of TextUnderline --- src/openrct2-ui/windows/Finances.cpp | 4 ++-- src/openrct2/drawing/Text.cpp | 2 +- src/openrct2/drawing/Text.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2-ui/windows/Finances.cpp b/src/openrct2-ui/windows/Finances.cpp index a3de9740f4..6e0e295f20 100644 --- a/src/openrct2-ui/windows/Finances.cpp +++ b/src/openrct2-ui/windows/Finances.cpp @@ -435,7 +435,7 @@ namespace OpenRCT2::Ui::Windows DrawTextBasic( rt, screenCoords + ScreenCoordsXY{ kExpenditureColumnWidth, 0 }, monthyear == currentMonthYear ? STR_WINDOW_COLOUR_2_STRINGID : STR_BLACK_STRING, ft, - { TextUnderline::On, TextAlignment::RIGHT }); + { TextUnderline::on, TextAlignment::RIGHT }); screenCoords.y += 14; // Month expenditures @@ -597,7 +597,7 @@ namespace OpenRCT2::Ui::Windows // Expenditure / Income heading DrawTextBasic( rt, screenCoords, STR_FINANCES_SUMMARY_EXPENDITURE_INCOME, {}, - { COLOUR_BLACK, TextUnderline::On, TextAlignment::LEFT }); + { COLOUR_BLACK, TextUnderline::on, TextAlignment::LEFT }); screenCoords.y += 14; // Expenditure / Income row labels diff --git a/src/openrct2/drawing/Text.cpp b/src/openrct2/drawing/Text.cpp index 03e3c04b10..999c49beb6 100644 --- a/src/openrct2/drawing/Text.cpp +++ b/src/openrct2/drawing/Text.cpp @@ -98,7 +98,7 @@ void DrawText(RenderTarget& rt, const ScreenCoordsXY& coords, const TextPaint& p TTFDrawString(rt, text, paint.Colour, alignedCoords, noFormatting, paint.FontStyle, paint.Darkness); - if (paint.UnderlineText == TextUnderline::On) + if (paint.UnderlineText == TextUnderline::on) { Rectangle::fill( rt, { { alignedCoords + ScreenCoordsXY{ 0, 11 } }, { alignedCoords + ScreenCoordsXY{ width, 11 } } }, diff --git a/src/openrct2/drawing/Text.h b/src/openrct2/drawing/Text.h index e448dd8718..18d936f024 100644 --- a/src/openrct2/drawing/Text.h +++ b/src/openrct2/drawing/Text.h @@ -30,8 +30,8 @@ enum class TextAlignment enum class TextUnderline { - Off, - On, + off, + on, }; enum class TextDarkness @@ -45,7 +45,7 @@ struct TextPaint { ColourWithFlags Colour = { COLOUR_BLACK }; ::FontStyle FontStyle = FontStyle::Medium; - TextUnderline UnderlineText = TextUnderline::Off; + TextUnderline UnderlineText = TextUnderline::off; TextAlignment Alignment = TextAlignment::LEFT; TextDarkness Darkness = TextDarkness::regular;