mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon/OnScreenDisplay: Default initialize all Message members
Provides a deterministic initial state in the case of the default constructor.
This commit is contained in:
@ -26,14 +26,14 @@ constexpr float WINDOW_PADDING = 4.0f; // Pixels between subsequent OSD message
|
|||||||
|
|
||||||
struct Message
|
struct Message
|
||||||
{
|
{
|
||||||
Message() {}
|
Message() = default;
|
||||||
Message(const std::string& text_, u32 timestamp_, u32 color_)
|
Message(const std::string& text_, u32 timestamp_, u32 color_)
|
||||||
: text(text_), timestamp(timestamp_), color(color_)
|
: text(text_), timestamp(timestamp_), color(color_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
std::string text;
|
std::string text;
|
||||||
u32 timestamp;
|
u32 timestamp = 0;
|
||||||
u32 color;
|
u32 color = 0;
|
||||||
};
|
};
|
||||||
static std::multimap<MessageType, Message> s_messages;
|
static std::multimap<MessageType, Message> s_messages;
|
||||||
static std::mutex s_messages_mutex;
|
static std::mutex s_messages_mutex;
|
||||||
|
Reference in New Issue
Block a user