Skip to content
Permalink
Browse files

VideoCommon/OnScreenDisplay: Default initialize all Message members

Provides a deterministic initial state in the case of the default
constructor.
  • Loading branch information...
lioncash committed Jul 29, 2019
1 parent b0113b6 commit 50b240fcbd3822e3d7aa9d5fa2c86274393de14a
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/VideoCommon/OnScreenDisplay.cpp
@@ -26,14 +26,14 @@ constexpr float WINDOW_PADDING = 4.0f; // Pixels between subsequent OSD message

struct Message
{
Message() {}
Message() = default;
Message(const std::string& text_, u32 timestamp_, u32 color_)
: text(text_), timestamp(timestamp_), color(color_)
{
}
std::string text;
u32 timestamp;
u32 color;
u32 timestamp = 0;
u32 color = 0;
};
static std::multimap<MessageType, Message> s_messages;
static std::mutex s_messages_mutex;

0 comments on commit 50b240f

Please sign in to comment.
You can’t perform that action at this time.