mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
Clang
This commit is contained in:
parent
4d7a4caa61
commit
3edb61badd
@ -217,7 +217,7 @@ void TrophyUI::Draw() {
|
|||||||
float text_width = ImGui::CalcTextSize(trophy_name.c_str()).x;
|
float text_width = ImGui::CalcTextSize(trophy_name.c_str()).x;
|
||||||
float centered_x = (window_size.x - text_width) * 0.5f;
|
float centered_x = (window_size.x - text_width) * 0.5f;
|
||||||
ImGui::SetCursorPosX(std::max(centered_x, 10.0f * AdjustWidth));
|
ImGui::SetCursorPosX(std::max(centered_x, 10.0f * AdjustWidth));
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::PushTextWrapPos(window_size.x - (60 * AdjustWidth));
|
ImGui::PushTextWrapPos(window_size.x - (60 * AdjustWidth));
|
||||||
TextWrapped("Trophy earned!\n%s", trophy_name.c_str());
|
TextWrapped("Trophy earned!\n%s", trophy_name.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user