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
3871981e
Commit
3871981e
authored
Jan 26, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Invalidate layout on box changes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e9ff71f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
layout.c
dlls/dwrite/layout.c
+10
-0
No files found.
dlls/dwrite/layout.c
View file @
3871981e
...
...
@@ -2833,26 +2833,36 @@ static HRESULT WINAPI dwritetextlayout_GetLocaleName(IDWriteTextLayout3 *iface,
static
HRESULT
WINAPI
dwritetextlayout_SetMaxWidth
(
IDWriteTextLayout3
*
iface
,
FLOAT
maxWidth
)
{
struct
dwrite_textlayout
*
This
=
impl_from_IDWriteTextLayout3
(
iface
);
BOOL
changed
;
TRACE
(
"(%p)->(%.2f)
\n
"
,
This
,
maxWidth
);
if
(
maxWidth
<
0
.
0
f
)
return
E_INVALIDARG
;
changed
=
This
->
metrics
.
layoutWidth
!=
maxWidth
;
This
->
metrics
.
layoutWidth
=
maxWidth
;
if
(
changed
)
This
->
recompute
|=
RECOMPUTE_LINES
;
return
S_OK
;
}
static
HRESULT
WINAPI
dwritetextlayout_SetMaxHeight
(
IDWriteTextLayout3
*
iface
,
FLOAT
maxHeight
)
{
struct
dwrite_textlayout
*
This
=
impl_from_IDWriteTextLayout3
(
iface
);
BOOL
changed
;
TRACE
(
"(%p)->(%.2f)
\n
"
,
This
,
maxHeight
);
if
(
maxHeight
<
0
.
0
f
)
return
E_INVALIDARG
;
changed
=
This
->
metrics
.
layoutHeight
!=
maxHeight
;
This
->
metrics
.
layoutHeight
=
maxHeight
;
if
(
changed
)
This
->
recompute
|=
RECOMPUTE_LINES
;
return
S_OK
;
}
...
...
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