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
0691af08
Commit
0691af08
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 GetTextBeforePosition() for layout analysis source.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da7c3ef5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
layout.c
dlls/dwrite/layout.c
+14
-2
No files found.
dlls/dwrite/layout.c
View file @
0691af08
...
@@ -4130,8 +4130,20 @@ static HRESULT WINAPI dwritetextlayout_source_GetTextAtPosition(IDWriteTextAnaly
...
@@ -4130,8 +4130,20 @@ static HRESULT WINAPI dwritetextlayout_source_GetTextAtPosition(IDWriteTextAnaly
static
HRESULT
WINAPI
dwritetextlayout_source_GetTextBeforePosition
(
IDWriteTextAnalysisSource1
*
iface
,
static
HRESULT
WINAPI
dwritetextlayout_source_GetTextBeforePosition
(
IDWriteTextAnalysisSource1
*
iface
,
UINT32
position
,
WCHAR
const
**
text
,
UINT32
*
text_len
)
UINT32
position
,
WCHAR
const
**
text
,
UINT32
*
text_len
)
{
{
FIXME
(
"%u %p %p: stub
\n
"
,
position
,
text
,
text_len
);
struct
dwrite_textlayout
*
layout
=
impl_from_IDWriteTextAnalysisSource1
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%u %p %p)
\n
"
,
layout
,
position
,
text
,
text_len
);
if
(
position
>
0
&&
position
<
layout
->
len
)
{
*
text
=
layout
->
str
;
*
text_len
=
position
;
}
else
{
*
text
=
NULL
;
*
text_len
=
0
;
}
return
S_OK
;
}
}
static
DWRITE_READING_DIRECTION
WINAPI
dwritetextlayout_source_GetParagraphReadingDirection
(
IDWriteTextAnalysisSource1
*
iface
)
static
DWRITE_READING_DIRECTION
WINAPI
dwritetextlayout_source_GetParagraphReadingDirection
(
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