FullscreenUI: Fix incorrect achievement points display

This commit is contained in:
Stenzek 2023-09-07 22:51:45 +10:00
parent b8a372bb6e
commit a4911946ec

View file

@ -6642,7 +6642,7 @@ void FullscreenUI::DrawAchievement(const Achievements::Achievement& cheevo)
const float midpoint = bb.Min.y + g_large_font->FontSize + LayoutScale(4.0f); const float midpoint = bb.Min.y + g_large_font->FontSize + LayoutScale(4.0f);
const auto points_text = const auto points_text =
TinyString::FromFmt((cheevo.points != 1) ? FSUI_FSTR("{} point") : FSUI_FSTR("{} points"), cheevo.points); TinyString::FromFmt((cheevo.points != 1) ? FSUI_FSTR("{} points") : FSUI_FSTR("{} point"), cheevo.points);
const ImVec2 points_template_size( const ImVec2 points_template_size(
g_medium_font->CalcTextSizeA(g_medium_font->FontSize, FLT_MAX, 0.0f, FSUI_CSTR("XXX points"))); g_medium_font->CalcTextSizeA(g_medium_font->FontSize, FLT_MAX, 0.0f, FSUI_CSTR("XXX points")));
const ImVec2 points_size(g_medium_font->CalcTextSizeA(g_medium_font->FontSize, FLT_MAX, 0.0f, const ImVec2 points_size(g_medium_font->CalcTextSizeA(g_medium_font->FontSize, FLT_MAX, 0.0f,