diff options
| author | Dr. Dystopia <jonis9898@hotmail.com> | 2025-04-17 19:19:14 +0200 |
|---|---|---|
| committer | Dr. Dystopia <jonis9898@hotmail.com> | 2025-05-01 14:11:55 +0200 |
| commit | 5c0cf0788fd545dd5f47d37f553f1f1d9f797b1a (patch) | |
| tree | 4878c4f4d17b813d6aaf9ed574e6bbeeb4993aed /Source/Core/VideoCommon/NetPlayChatUI.cpp | |
| parent | 0b0151770a2a087063775e654e1b6208033a9c21 (diff) | |
VideoCommon/NetPlayChatUI: Replace `msg` with structured binding
Diffstat (limited to 'Source/Core/VideoCommon/NetPlayChatUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/NetPlayChatUI.cpp | 5 |
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(); } |
