From 300d158320c21f20f56df22cec40bcc8edbba89f Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 27 Jul 2025 13:45:46 +1000 Subject: [PATCH] FullscreenUI: Fix clock position in pause menu --- src/core/fullscreen_ui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/fullscreen_ui.cpp b/src/core/fullscreen_ui.cpp index bf2f96a33..7d657eace 100644 --- a/src/core/fullscreen_ui.cpp +++ b/src/core/fullscreen_ui.cpp @@ -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::max(), -1.0f, IMSTR_START_END(buffer)); + ImVec2 text_size = + UIStyle.Font->CalcTextSizeA(UIStyle.LargeFontSize, UIStyle.BoldFontWeight, std::numeric_limits::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);