Migrate OSS up to b7fc0f2d4 (PTO/ETO Change)

This commit is contained in:
Dustin Howett 2021-07-15 14:55:29 -05:00
commit 769e910e35

View file

@ -436,9 +436,14 @@ using namespace Microsoft::Console::Render;
if (_cPolyText > 0)
{
if (!PolyTextOutW(_hdcMemoryContext, _pPolyText, (UINT)_cPolyText))
for (size_t i = 0; i != _cPolyText; ++i)
{
hr = E_FAIL;
const auto& t = _pPolyText[i];
if (!ExtTextOutW(_hdcMemoryContext, t.x, t.y, t.uiFlags, &t.rcl, t.lpstr, t.n, t.pdx))
{
hr = E_FAIL;
break;
}
}
_polyStrings.clear();