Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
145102c7
Commit
145102c7
authored
Nov 14, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Merge neutral scripts.
parent
3767cebc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
usp10.c
dlls/usp10/usp10.c
+35
-2
No files found.
dlls/usp10/usp10.c
View file @
145102c7
...
...
@@ -870,8 +870,41 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
}
if
(
psControl
->
fMergeNeutralItems
)
{
HeapFree
(
GetProcessHeap
(),
0
,
strength
);
strength
=
NULL
;
/* Merge the neutrals */
for
(
i
=
0
;
i
<
cInChars
;
i
++
)
{
if
(
strength
[
i
]
==
BIDI_NEUTRAL
||
strength
[
i
]
==
BIDI_WEAK
)
{
int
j
;
for
(
j
=
i
;
j
>
0
;
j
--
)
{
if
(
levels
[
i
]
!=
levels
[
j
])
break
;
if
((
strength
[
j
]
==
BIDI_STRONG
)
||
(
strength
[
i
]
==
BIDI_NEUTRAL
&&
strength
[
j
]
==
BIDI_WEAK
))
{
scripts
[
i
]
=
scripts
[
j
];
strength
[
i
]
=
strength
[
j
];
break
;
}
}
}
/* Try going the other way */
if
(
strength
[
i
]
==
BIDI_NEUTRAL
||
strength
[
i
]
==
BIDI_WEAK
)
{
int
j
;
for
(
j
=
i
;
j
<
cInChars
;
j
++
)
{
if
(
levels
[
i
]
!=
levels
[
j
])
break
;
if
((
strength
[
j
]
==
BIDI_STRONG
)
||
(
strength
[
i
]
==
BIDI_NEUTRAL
&&
strength
[
j
]
==
BIDI_WEAK
))
{
scripts
[
i
]
=
scripts
[
j
];
strength
[
i
]
=
strength
[
j
];
break
;
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment