mirror of https://github.com/PCSX2/pcsx2.git
ImGuiManager: Fix icon OSD messages
This commit is contained in:
parent
d9bdb0d7e1
commit
ac97e0c6e9
|
@ -575,9 +575,9 @@ void Host::AddKeyedOSDMessage(std::string key, std::string message, float durati
|
|||
OSDMessage msg;
|
||||
msg.key = std::move(key);
|
||||
msg.text = std::move(message);
|
||||
msg.duration = duration;
|
||||
msg.start_time = current_time;
|
||||
msg.move_time = current_time;
|
||||
msg.duration = duration;
|
||||
msg.target_y = -1.0f;
|
||||
msg.last_y = -1.0f;
|
||||
|
||||
|
@ -599,6 +599,7 @@ void Host::AddIconOSDMessage(std::string key, const char* icon, const std::strin
|
|||
msg.text = fmt::format("{} {}", icon, message);
|
||||
msg.start_time = current_time;
|
||||
msg.move_time = current_time;
|
||||
msg.duration = duration;
|
||||
msg.target_y = -1.0f;
|
||||
msg.last_y = -1.0f;
|
||||
|
||||
|
@ -682,8 +683,6 @@ void ImGuiManager::DrawOSDMessages(Common::Timer::Value current_time)
|
|||
float position_x = margin;
|
||||
float position_y = margin;
|
||||
|
||||
const auto now = std::chrono::steady_clock::now();
|
||||
|
||||
auto iter = s_osd_active_messages.begin();
|
||||
while (iter != s_osd_active_messages.end())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue