gdi32: Correct usage of ScriptLayout for bidi code.
This commit is contained in:
parent
8d12fc61d5
commit
8ac121c671
|
@ -321,7 +321,7 @@ static void BidiLines(int baselevel, LPWSTR pszOutLine, LPCWSTR pszLine, WORD *
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
/* reorder each line in place */
|
/* reorder each line in place */
|
||||||
ScriptLayout(cchLine, plevelLine, run, NULL);
|
ScriptLayout(cchLine, plevelLine, NULL, run);
|
||||||
for (i = 0; i < cchLine; i++)
|
for (i = 0; i < cchLine; i++)
|
||||||
pszOutLine[done+run[i]] = pszLine[i];
|
pszOutLine[done+run[i]] = pszLine[i];
|
||||||
}
|
}
|
||||||
|
@ -590,7 +590,7 @@ BOOL BIDI_Reorder(
|
||||||
for (j = 0; j < nItems; j++)
|
for (j = 0; j < nItems; j++)
|
||||||
runOrder[j] = pItems[j].a.s.uBidiLevel;
|
runOrder[j] = pItems[j].a.s.uBidiLevel;
|
||||||
|
|
||||||
ScriptLayout(nItems, runOrder, NULL, visOrder);
|
ScriptLayout(nItems, runOrder, visOrder, NULL);
|
||||||
|
|
||||||
for (j = 0; j < nItems; j++)
|
for (j = 0; j < nItems; j++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue