Merge pull request #4286 from shuffle2/Aestek-clean-osd

Clean OSD messages code
This commit is contained in:
shuffle2
2016-10-03 20:09:35 -07:00
committed by GitHub
7 changed files with 132 additions and 145 deletions

View File

@ -172,13 +172,6 @@ void DisplayMessage(const std::string& message, int time_in_ms)
if (!IsRunning())
return;
// Actually displaying non-ASCII could cause things to go pear-shaped
for (const char& c : message)
{
if (!std::isprint(c))
return;
}
OSD::AddMessage(message, time_in_ms);
Host_UpdateTitle(message);
}