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
abfc973c
Commit
abfc973c
authored
Apr 05, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix explicit levels returned for LRE and RLE control characters.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98a89899
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
bidi.c
dlls/dwrite/bidi.c
+2
-2
analyzer.c
dlls/dwrite/tests/analyzer.c
+0
-6
layout.c
dlls/dwrite/tests/layout.c
+1
-1
No files found.
dlls/dwrite/bidi.c
View file @
abfc973c
...
...
@@ -278,7 +278,7 @@ static void bidi_resolve_explicit(UINT8 baselevel, UINT8 *classes, UINT8 *levels
/* X2 */
case
RLE
:
least_odd
=
get_greater_odd_level
(
stack
[
stack_top
].
level
);
levels
[
i
]
=
stack
[
stack_top
].
level
;
levels
[
i
]
=
valid_level
(
least_odd
)
?
least_odd
:
stack
[
stack_top
].
level
;
if
(
valid_level
(
least_odd
))
push_stack
(
least_odd
,
NI
,
FALSE
);
else
if
(
overflow_isolate_count
==
0
)
...
...
@@ -288,7 +288,7 @@ static void bidi_resolve_explicit(UINT8 baselevel, UINT8 *classes, UINT8 *levels
/* X3 */
case
LRE
:
least_even
=
get_greater_even_level
(
stack
[
stack_top
].
level
);
levels
[
i
]
=
stack
[
stack_top
].
level
;
levels
[
i
]
=
valid_level
(
least_even
)
?
least_even
:
stack
[
stack_top
].
level
;
if
(
valid_level
(
least_even
))
push_stack
(
least_even
,
NI
,
FALSE
);
else
if
(
overflow_isolate_count
==
0
)
...
...
dlls/dwrite/tests/analyzer.c
View file @
abfc973c
...
...
@@ -2282,42 +2282,36 @@ static const struct bidi_test bidi_tests[] = {
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT
,
{
2
,
2
,
0
,
0
},
{
0
,
0
,
0
,
0
},
TRUE
},
{
{
'a'
,
LRE
,
PDF
,
'b'
,
0
},
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT
,
{
0
,
2
,
2
,
0
},
{
0
,
0
,
0
,
0
},
TRUE
},
{
{
RLE
,
PDF
,
'a'
,
'b'
,
0
},
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT
,
{
1
,
1
,
0
,
0
},
{
0
,
0
,
0
,
0
},
TRUE
},
{
{
'a'
,
RLE
,
PDF
,
'b'
,
0
},
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT
,
{
0
,
1
,
1
,
0
},
{
0
,
0
,
0
,
0
},
TRUE
},
{
{
'a'
,
RLE
,
PDF
,
'b'
,
0
},
DWRITE_READING_DIRECTION_RIGHT_TO_LEFT
,
{
1
,
3
,
3
,
1
},
{
2
,
2
,
2
,
2
},
TRUE
},
{
{
LRE
,
PDF
,
'a'
,
'b'
,
0
},
DWRITE_READING_DIRECTION_RIGHT_TO_LEFT
,
{
2
,
2
,
1
,
1
},
{
1
,
1
,
2
,
2
},
TRUE
},
{
{
PDF
,
'a'
,
'b'
,
0
},
...
...
dlls/dwrite/tests/layout.c
View file @
abfc973c
...
...
@@ -1648,7 +1648,7 @@ todo_wine
flush_sequence
(
sequences
,
RENDERER_ID
);
hr
=
IDWriteTextLayout_Draw
(
layout
,
&
ctxt
,
&
testrenderer
,
0
.
0
,
0
.
0
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok_sequence
(
sequences
,
RENDERER_ID
,
draw_seq3
,
"draw test 3"
,
TRU
E
);
ok_sequence
(
sequences
,
RENDERER_ID
,
draw_seq3
,
"draw test 3"
,
FALS
E
);
IDWriteTextLayout_Release
(
layout
);
/* strikethrough splits ranges from renderer point of view, but doesn't 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