Revert "Merge pull request #4286 from shuffle2/Aestek-clean-osd"
This reverts commit5c0fa4db4f, reversing changes made tob8731eb818.
This commit is contained in:
1 parent
b8a1611f4a
commit
1cc1876002
7 files changed
+146
-132
No files matched your search
@@ -173,6 +173,13 @@ 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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user