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);