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
0c27e5cd
Commit
0c27e5cd
authored
Apr 21, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix script position reported with SetScriptAnalysis().
parent
e0403efc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
analyzer.c
dlls/dwrite/analyzer.c
+4
-4
No files found.
dlls/dwrite/analyzer.c
View file @
0c27e5cd
...
@@ -204,7 +204,7 @@ static inline UINT16 get_char_script(WCHAR c)
...
@@ -204,7 +204,7 @@ static inline UINT16 get_char_script(WCHAR c)
return
script
;
return
script
;
}
}
static
HRESULT
analyze_script
(
const
WCHAR
*
text
,
UINT32
len
,
IDWriteTextAnalysisSink
*
sink
)
static
HRESULT
analyze_script
(
const
WCHAR
*
text
,
UINT32
position
,
UINT32
len
,
IDWriteTextAnalysisSink
*
sink
)
{
{
DWRITE_SCRIPT_ANALYSIS
sa
;
DWRITE_SCRIPT_ANALYSIS
sa
;
UINT32
pos
,
i
,
length
;
UINT32
pos
,
i
,
length
;
...
@@ -213,7 +213,7 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
...
@@ -213,7 +213,7 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
sa
.
script
=
get_char_script
(
*
text
);
sa
.
script
=
get_char_script
(
*
text
);
pos
=
0
;
pos
=
position
;
length
=
1
;
length
=
1
;
for
(
i
=
1
;
i
<
len
;
i
++
)
for
(
i
=
1
;
i
<
len
;
i
++
)
...
@@ -233,7 +233,7 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
...
@@ -233,7 +233,7 @@ static HRESULT analyze_script(const WCHAR *text, UINT32 len, IDWriteTextAnalysis
sa
.
shapes
=
sa
.
script
!=
Script_Common
?
DWRITE_SCRIPT_SHAPES_DEFAULT
:
DWRITE_SCRIPT_SHAPES_NO_VISUAL
;
sa
.
shapes
=
sa
.
script
!=
Script_Common
?
DWRITE_SCRIPT_SHAPES_DEFAULT
:
DWRITE_SCRIPT_SHAPES_NO_VISUAL
;
hr
=
IDWriteTextAnalysisSink_SetScriptAnalysis
(
sink
,
pos
,
length
,
&
sa
);
hr
=
IDWriteTextAnalysisSink_SetScriptAnalysis
(
sink
,
pos
,
length
,
&
sa
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
pos
=
i
;
pos
=
position
+
i
;
length
=
1
;
length
=
1
;
sa
.
script
=
script
;
sa
.
script
=
script
;
}
}
...
@@ -732,7 +732,7 @@ static HRESULT WINAPI dwritetextanalyzer_AnalyzeScript(IDWriteTextAnalyzer2 *ifa
...
@@ -732,7 +732,7 @@ static HRESULT WINAPI dwritetextanalyzer_AnalyzeScript(IDWriteTextAnalyzer2 *ifa
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
hr
=
analyze_script
(
text
,
length
,
sink
);
hr
=
analyze_script
(
text
,
position
,
length
,
sink
);
heap_free
(
buff
);
heap_free
(
buff
);
return
hr
;
return
hr
;
...
...
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