mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-28 22:01:59 +00:00
FullscreenUI: Fix clock position in pause menu
This commit is contained in:
parent
5bfe5cf121
commit
300d158320
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user