UWP: fix && in English UI labels

This commit is contained in:
driver1998 2019-06-07 05:40:06 +08:00
parent 8fab38ecdd
commit eb9581b43e

View file

@ -317,7 +317,7 @@ void TextDrawerUWP::DrawString(DrawBuffer &target, const char *str, float x, flo
}
else {
// Render the string to our bitmap and save to a GL texture.
std::wstring wstr = ConvertUTF8ToWString(ReplaceAll(str, "\n", "\r\n"));
std::wstring wstr = ConvertUTF8ToWString(ReplaceAll(ReplaceAll(str, "\n", "\r\n"), "&&", "&"));
SIZE size;
IDWriteTextFormat* format = nullptr;