summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/NetPlayChatUI.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-05-17 17:09:13 -0500
committerGitHub <noreply@github.com>2025-05-17 17:09:13 -0500
commit94888d250ee14afbe26f63de4ab54558c9aadd89 (patch)
tree69aa50b7bc9f53f4a3846d203bfe3efc91356039 /Source/Core/VideoCommon/NetPlayChatUI.cpp
parentdacb0045160b569f3ea57f88eab046be4b2a535c (diff)
parent5c0cf0788fd545dd5f47d37f553f1f1d9f797b1a (diff)
Merge pull request #13527 from tygyh/Replace-msg-with-structured-binding-VideoCommon/NetPlayChatUI
VideoCommon/NetPlayChatUI: Replace msg with structured binding
Diffstat (limited to 'Source/Core/VideoCommon/NetPlayChatUI.cpp')
-rw-r--r--Source/Core/VideoCommon/NetPlayChatUI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/NetPlayChatUI.cpp b/Source/Core/VideoCommon/NetPlayChatUI.cpp
index c1217d041d..772dd3fe81 100644
--- a/Source/Core/VideoCommon/NetPlayChatUI.cpp
+++ b/Source/Core/VideoCommon/NetPlayChatUI.cpp
@@ -35,11 +35,10 @@ void NetPlayChatUI::Display()
}
ImGui::BeginChild("Scrolling", ImVec2(0, -30 * scale), true, ImGuiWindowFlags_None);
- for (const auto& msg : m_messages)
+ for (const auto& [text, color] : m_messages)
{
- auto c = msg.second;
ImGui::PushTextWrapPos(0.0f);
- ImGui::TextColored(ImVec4(c[0], c[1], c[2], 1.0f), "%s", msg.first.c_str());
+ ImGui::TextColored(ImVec4(color[0], color[1], color[2], 1.0f), "%s", text.c_str());
ImGui::PopTextWrapPos();
}