From eb9581b43e16be22a30ca5383549f7f093ca0fd4 Mon Sep 17 00:00:00 2001 From: driver1998 Date: Fri, 7 Jun 2019 05:40:06 +0800 Subject: [PATCH] UWP: fix && in English UI labels --- ext/native/gfx_es2/draw_text_uwp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/gfx_es2/draw_text_uwp.cpp b/ext/native/gfx_es2/draw_text_uwp.cpp index 7b0d989ba7..424a8d6358 100644 --- a/ext/native/gfx_es2/draw_text_uwp.cpp +++ b/ext/native/gfx_es2/draw_text_uwp.cpp @@ -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;