From f4ef9de2e68b7fb6d0a5c7618d0019d5955ddaba Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sat, 1 May 2021 00:33:40 +0200 Subject: [PATCH] Fix Control Hit Translation --- Source/controls/modifier_hints.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/controls/modifier_hints.cpp b/Source/controls/modifier_hints.cpp index 7a6387304..eadc82ea3 100644 --- a/Source/controls/modifier_hints.cpp +++ b/Source/controls/modifier_hints.cpp @@ -30,14 +30,14 @@ int SpaceWidth() struct CircleMenuHint { CircleMenuHint(bool isDpad, const char *top, const char *right, const char *bottom, const char *left) : is_dpad(isDpad) - , top(_(top)) - , top_w(CalculateTextWidth(_(top))) - , right(_(right)) - , right_w(CalculateTextWidth(_(right))) - , bottom(_(bottom)) - , bottom_w(CalculateTextWidth(_(bottom))) - , left(_(left)) - , left_w(CalculateTextWidth(_(left))) + , top(top) + , top_w(CalculateTextWidth(top)) + , right(right) + , right_w(CalculateTextWidth(right)) + , bottom(bottom) + , bottom_w(CalculateTextWidth(bottom)) + , left(left) + , left_w(CalculateTextWidth(left)) , x_mid(left_w + SpaceWidth() * 2.5) { } @@ -114,8 +114,8 @@ void DrawStartModifierMenu(const CelOutputBuffer &out) { if (!start_modifier_active) return; - static const CircleMenuHint dPad(/*is_dpad=*/true, /*top=*/N_("Menu"), /*right=*/N_("Inv"), /*bottom=*/N_("Map"), /*left=*/N_("Char")); - static const CircleMenuHint buttons(/*is_dpad=*/false, /*top=*/"", /*right=*/"", /*bottom=*/N_("Spells"), /*left=*/N_("Quests")); + static const CircleMenuHint dPad(/*is_dpad=*/true, /*top=*/_("Menu"), /*right=*/_("Inv"), /*bottom=*/_("Map"), /*left=*/_("Char")); + static const CircleMenuHint buttons(/*is_dpad=*/false, /*top=*/"", /*right=*/"", /*bottom=*/_("Spells"), /*left=*/_("Quests")); DrawCircleMenuHint(out, dPad, PANEL_LEFT + CircleMarginX, PANEL_TOP - CirclesTop); DrawCircleMenuHint(out, buttons, PANEL_LEFT + PANEL_WIDTH - buttons.Width() - CircleMarginX, PANEL_TOP - CirclesTop); }