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
bac7e9c6
Commit
bac7e9c6
authored
Feb 02, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Implement SetFlowDirection() for layout.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc4b4be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
layout.c
dlls/dwrite/layout.c
+24
-9
No files found.
dlls/dwrite/layout.c
View file @
bac7e9c6
...
...
@@ -400,6 +400,16 @@ static inline HRESULT format_set_wordwrapping(struct dwrite_textformat_data *for
return
S_OK
;
}
static
inline
HRESULT
format_set_flowdirection
(
struct
dwrite_textformat_data
*
format
,
DWRITE_FLOW_DIRECTION
direction
,
BOOL
*
changed
)
{
if
((
UINT32
)
direction
>
DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT
)
return
E_INVALIDARG
;
if
(
changed
)
*
changed
=
format
->
flow
!=
direction
;
format
->
flow
=
direction
;
return
S_OK
;
}
static
HRESULT
get_fontfallback_from_format
(
const
struct
dwrite_textformat_data
*
format
,
IDWriteFontFallback
**
fallback
)
{
*
fallback
=
format
->
fallback
;
...
...
@@ -3685,8 +3695,19 @@ static HRESULT WINAPI dwritetextformat1_layout_SetReadingDirection(IDWriteTextFo
static
HRESULT
WINAPI
dwritetextformat1_layout_SetFlowDirection
(
IDWriteTextFormat1
*
iface
,
DWRITE_FLOW_DIRECTION
direction
)
{
struct
dwrite_textlayout
*
This
=
impl_layout_form_IDWriteTextFormat1
(
iface
);
FIXME
(
"(%p)->(%d): stub
\n
"
,
This
,
direction
);
return
E_NOTIMPL
;
BOOL
changed
;
HRESULT
hr
;
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
direction
);
hr
=
format_set_flowdirection
(
&
This
->
format
,
direction
,
&
changed
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
changed
)
This
->
recompute
=
RECOMPUTE_EVERYTHING
;
return
S_OK
;
}
static
HRESULT
WINAPI
dwritetextformat1_layout_SetIncrementalTabStop
(
IDWriteTextFormat1
*
iface
,
FLOAT
tabstop
)
...
...
@@ -4675,14 +4696,8 @@ static HRESULT WINAPI dwritetextformat_SetReadingDirection(IDWriteTextFormat1 *i
static
HRESULT
WINAPI
dwritetextformat_SetFlowDirection
(
IDWriteTextFormat1
*
iface
,
DWRITE_FLOW_DIRECTION
direction
)
{
struct
dwrite_textformat
*
This
=
impl_from_IDWriteTextFormat1
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
direction
);
if
((
UINT32
)
direction
>
DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT
)
return
E_INVALIDARG
;
This
->
format
.
flow
=
direction
;
return
S_OK
;
return
format_set_flowdirection
(
&
This
->
format
,
direction
,
NULL
);
}
static
HRESULT
WINAPI
dwritetextformat_SetIncrementalTabStop
(
IDWriteTextFormat1
*
iface
,
FLOAT
tabstop
)
...
...
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