Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e94264e6
Commit
e94264e6
authored
Feb 02, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Improve SetScriptAnalysis()/SetBidiLevel() tracing.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8d9bf23f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
analyzer.c
dlls/dwrite/analyzer.c
+5
-0
dwrite_private.h
dlls/dwrite/dwrite_private.h
+2
-0
layout.c
dlls/dwrite/layout.c
+2
-2
layout.c
dlls/dwrite/tests/layout.c
+1
-1
No files found.
dlls/dwrite/analyzer.c
View file @
e94264e6
...
...
@@ -177,6 +177,11 @@ static const struct dwritescript_properties dwritescripts_properties[Script_Last
};
#undef _OT
const
char
*
debugstr_sa_script
(
UINT16
script
)
{
return
script
<
Script_LastId
?
debugstr_an
((
char
*
)
&
dwritescripts_properties
[
script
].
props
.
isoScriptCode
,
4
)
:
"not defined"
;
}
struct
dwrite_numbersubstitution
{
IDWriteNumberSubstitution
IDWriteNumberSubstitution_iface
;
LONG
ref
;
...
...
dlls/dwrite/dwrite_private.h
View file @
e94264e6
...
...
@@ -99,6 +99,8 @@ static inline const char *debugstr_matrix(const DWRITE_MATRIX *m)
m
->
dx
,
m
->
dy
);
}
const
char
*
debugstr_sa_script
(
UINT16
)
DECLSPEC_HIDDEN
;
static
inline
unsigned
short
get_table_entry
(
const
unsigned
short
*
table
,
WCHAR
ch
)
{
return
table
[
table
[
table
[
ch
>>
8
]
+
((
ch
>>
4
)
&
0x0f
)]
+
(
ch
&
0xf
)];
...
...
dlls/dwrite/layout.c
View file @
e94264e6
...
...
@@ -3977,7 +3977,7 @@ static HRESULT WINAPI dwritetextlayout_sink_SetScriptAnalysis(IDWriteTextAnalysi
struct
dwrite_textlayout
*
layout
=
impl_from_IDWriteTextAnalysisSink1
(
iface
);
struct
layout_run
*
run
;
TRACE
(
"
%u %u script=%d
\n
"
,
position
,
length
,
sa
->
script
);
TRACE
(
"
[%u,%u) script=%u:%s
\n
"
,
position
,
position
+
length
,
sa
->
script
,
debugstr_sa_script
(
sa
->
script
)
);
run
=
alloc_layout_run
(
LAYOUT_RUN_REGULAR
);
if
(
!
run
)
...
...
@@ -4009,7 +4009,7 @@ static HRESULT WINAPI dwritetextlayout_sink_SetBidiLevel(IDWriteTextAnalysisSink
struct
dwrite_textlayout
*
layout
=
impl_from_IDWriteTextAnalysisSink1
(
iface
);
struct
layout_run
*
cur_run
;
TRACE
(
"
%u %u %u %u
\n
"
,
position
,
length
,
explicitLevel
,
resolvedLevel
);
TRACE
(
"
[%u,%u) %u %u
\n
"
,
position
,
position
+
length
,
explicitLevel
,
resolvedLevel
);
LIST_FOR_EACH_ENTRY
(
cur_run
,
&
layout
->
runs
,
struct
layout_run
,
entry
)
{
struct
regular_layout_run
*
cur
=
&
cur_run
->
u
.
regular
;
...
...
dlls/dwrite/tests/layout.c
View file @
e94264e6
...
...
@@ -1410,7 +1410,7 @@ static const struct drawcall_entry draw_seq2[] = {
};
static
const
struct
drawcall_entry
draw_seq3
[]
=
{
{
DRAW_GLYPHRUN
},
{
DRAW_GLYPHRUN
,
{
0x202a
,
0x202c
,
0
}
},
{
DRAW_GLYPHRUN
,
{
'a'
,
'b'
,
0
}
},
{
DRAW_LAST_KIND
}
};
...
...
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