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
1cb663f5
Commit
1cb663f5
authored
Feb 16, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Remove testing for exact script code value.
parent
f817fb56
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
analyzer.c
dlls/dwrite/analyzer.c
+5
-2
analyzer.c
dlls/dwrite/tests/analyzer.c
+0
-0
No files found.
dlls/dwrite/analyzer.c
View file @
1cb663f5
...
@@ -231,7 +231,6 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
...
@@ -231,7 +231,6 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
if
(
!
len
)
return
S_OK
;
if
(
!
len
)
return
S_OK
;
sa
.
script
=
get_char_script
(
*
text
);
sa
.
script
=
get_char_script
(
*
text
);
sa
.
shapes
=
DWRITE_SCRIPT_SHAPES_DEFAULT
;
pos
=
0
;
pos
=
0
;
length
=
1
;
length
=
1
;
...
@@ -248,7 +247,10 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
...
@@ -248,7 +247,10 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
if
(
sa
.
script
!=
script
)
if
(
sa
.
script
!=
script
)
{
{
HRESULT
hr
=
IDWriteTextAnalysisSink_SetScriptAnalysis
(
sink
,
pos
,
length
,
&
sa
);
HRESULT
hr
;
sa
.
shapes
=
sa
.
script
!=
Script_Controls
?
DWRITE_SCRIPT_SHAPES_DEFAULT
:
DWRITE_SCRIPT_SHAPES_NO_VISUAL
;
hr
=
IDWriteTextAnalysisSink_SetScriptAnalysis
(
sink
,
pos
,
length
,
&
sa
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
pos
=
i
;
pos
=
i
;
length
=
1
;
length
=
1
;
...
@@ -257,6 +259,7 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
...
@@ -257,6 +259,7 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
}
}
/* 1 length case or normal completion call */
/* 1 length case or normal completion call */
sa
.
shapes
=
sa
.
script
!=
Script_Controls
?
DWRITE_SCRIPT_SHAPES_DEFAULT
:
DWRITE_SCRIPT_SHAPES_NO_VISUAL
;
return
IDWriteTextAnalysisSink_SetScriptAnalysis
(
sink
,
pos
,
length
,
&
sa
);
return
IDWriteTextAnalysisSink_SetScriptAnalysis
(
sink
,
pos
,
length
,
&
sa
);
}
}
...
...
dlls/dwrite/tests/analyzer.c
View file @
1cb663f5
This diff is collapsed.
Click to expand it.
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