FullscreenUI: Fix clock position in pause menu

This commit is contained in:
Stenzek 2025-07-27 13:45:46 +10:00
parent 5bfe5cf121
commit 300d158320
No known key found for this signature in database

View File

@ -7012,8 +7012,9 @@ void FullscreenUI::DrawPauseMenu()
// current time / play time
UpdateCurrentTimeString();
ImVec2 text_size = UIStyle.Font->CalcTextSizeA(UIStyle.LargeFontSize, UIStyle.BoldFontWeight,
std::numeric_limits<float>::max(), -1.0f, IMSTR_START_END(buffer));
ImVec2 text_size =
UIStyle.Font->CalcTextSizeA(UIStyle.LargeFontSize, UIStyle.BoldFontWeight, std::numeric_limits<float>::max(),
-1.0f, IMSTR_START_END(s_state.current_time_string));
text_pos = ImVec2(display_size.x - scaled_top_bar_padding - text_size.x, scaled_top_bar_padding);
RenderShadowedTextClipped(dl, UIStyle.Font, UIStyle.LargeFontSize, UIStyle.BoldFontWeight, text_pos, display_size,
title_text_color, s_state.current_time_string);