mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Fix margins on icon-only messages
Messages with an icon and no text (such as in the game start sequence) had an oversized margin due to ImGui adding padding for an empty string.
This commit is contained in:
@ -116,7 +116,8 @@ static float DrawMessage(int index, Message& msg, const ImVec2& position, int ti
|
||||
}
|
||||
|
||||
// Use %s in case message contains %.
|
||||
ImGui::TextColored(ARGBToImVec4(msg.color), "%s", msg.text.c_str());
|
||||
if (msg.text.size() > 0)
|
||||
ImGui::TextColored(ARGBToImVec4(msg.color), "%s", msg.text.c_str());
|
||||
window_height =
|
||||
ImGui::GetWindowSize().y + (WINDOW_PADDING * ImGui::GetIO().DisplayFramebufferScale.y);
|
||||
}
|
||||
|
Reference in New Issue
Block a user