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
da7c3ef5
Commit
da7c3ef5
authored
Feb 01, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement GetLocaleName() for layout analysis source.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
978ca156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
layout.c
dlls/dwrite/layout.c
+23
-2
No files found.
dlls/dwrite/layout.c
View file @
da7c3ef5
...
...
@@ -4143,8 +4143,29 @@ static DWRITE_READING_DIRECTION WINAPI dwritetextlayout_source_GetParagraphReadi
static
HRESULT
WINAPI
dwritetextlayout_source_GetLocaleName
(
IDWriteTextAnalysisSource1
*
iface
,
UINT32
position
,
UINT32
*
text_len
,
WCHAR
const
**
locale
)
{
FIXME
(
"%u %p %p: stub
\n
"
,
position
,
text_len
,
locale
);
return
E_NOTIMPL
;
struct
dwrite_textlayout
*
layout
=
impl_from_IDWriteTextAnalysisSource1
(
iface
);
struct
layout_range
*
range
=
get_layout_range_by_pos
(
layout
,
position
);
if
(
position
<
layout
->
len
)
{
struct
layout_range
*
next
;
*
locale
=
range
->
locale
;
*
text_len
=
range
->
h
.
range
.
length
-
position
;
next
=
LIST_ENTRY
(
list_next
(
&
layout
->
ranges
,
&
range
->
h
.
entry
),
struct
layout_range
,
h
.
entry
);
while
(
next
&&
next
->
h
.
range
.
startPosition
<
layout
->
len
&&
!
strcmpW
(
range
->
locale
,
next
->
locale
))
{
*
text_len
+=
next
->
h
.
range
.
length
;
next
=
LIST_ENTRY
(
list_next
(
&
layout
->
ranges
,
&
next
->
h
.
entry
),
struct
layout_range
,
h
.
entry
);
}
*
text_len
=
min
(
*
text_len
,
layout
->
len
-
position
);
}
else
{
*
locale
=
NULL
;
*
text_len
=
0
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
dwritetextlayout_source_GetNumberSubstitution
(
IDWriteTextAnalysisSource1
*
iface
,
...
...
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