VideoCommon/OnScreenDisplay: Default initialize all Message members

Provides a deterministic initial state in the case of the default
constructor.
This commit is contained in:
Lioncash 2019-07-28 22:42:42 -04:00
parent b0113b6c64
commit 50b240fcbd
1 changed files with 3 additions and 3 deletions

View File

@ -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;