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
fce22ead
Commit
fce22ead
authored
Nov 20, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Some unicode code points will force us into bidi mode.
parent
bba75dd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
usp10.c
dlls/usp10/usp10.c
+7
-1
No files found.
dlls/usp10/usp10.c
View file @
fce22ead
...
...
@@ -844,6 +844,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
BOOL
new_run
;
WORD
last_indic
=
-
1
;
WORD
layoutRTL
=
0
;
BOOL
forceLevels
=
FALSE
;
TRACE
(
"%s,%d,%d,%p,%p,%p,%p
\n
"
,
debugstr_wn
(
pwcInChars
,
cInChars
),
cInChars
,
cMaxItems
,
psControl
,
psState
,
pItems
,
pcItems
);
...
...
@@ -864,6 +865,11 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
scripts
[
i
]
=
last_indic
;
else
if
(
is_indic
(
scripts
[
i
]))
last_indic
=
base_indic
(
scripts
[
i
]);
/* Some unicode points (Zero Width Space U+200B -
Right-to-Left Mark U+200F) will force us into bidi mode */
if
(
!
forceLevels
&&
pwcInChars
[
i
]
>=
0x200B
&&
pwcInChars
[
i
]
<=
0x200F
)
forceLevels
=
TRUE
;
}
for
(
i
=
0
;
i
<
cInChars
;
i
++
)
...
...
@@ -902,7 +908,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
for
(
i
=
0
;
i
<
cInChars
;
i
++
)
if
(
levels
[
i
]
!=
levels
[
0
])
break
;
if
(
i
>=
cInChars
&&
!
odd
(
baselevel
)
&&
!
odd
(
psState
->
uBidiLevel
))
if
(
i
>=
cInChars
&&
!
odd
(
baselevel
)
&&
!
odd
(
psState
->
uBidiLevel
)
&&
!
forceLevels
)
{
heap_free
(
levels
);
levels
=
NULL
;
...
...
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