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
fc4b4be5
Commit
fc4b4be5
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: Invalidate layout on all cases of attribute change.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2b59029a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
layout.c
dlls/dwrite/layout.c
+1
-0
layout.c
dlls/dwrite/tests/layout.c
+1
-2
No files found.
dlls/dwrite/layout.c
View file @
fc4b4be5
...
...
@@ -2363,6 +2363,7 @@ static HRESULT set_layout_range_attr(struct dwrite_textlayout *layout, enum layo
list_add_after
(
&
outer
->
entry
,
&
cur
->
entry
);
list_add_after
(
&
cur
->
entry
,
&
right
->
entry
);
layout
->
recompute
=
RECOMPUTE_EVERYTHING
;
return
S_OK
;
}
...
...
dlls/dwrite/tests/layout.c
View file @
fc4b4be5
...
...
@@ -3467,10 +3467,9 @@ static void test_GetLineMetrics(void)
hr
=
IDWriteTextLayout_GetLineMetrics
(
layout
,
metrics
+
2
,
2
,
&
count
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
count
==
2
,
"got %u
\n
"
,
count
);
todo_wine
{
ok
(
metrics
[
3
].
height
>
metrics
[
1
].
height
,
"got %f, old %f
\n
"
,
metrics
[
3
].
height
,
metrics
[
1
].
height
);
ok
(
metrics
[
3
].
baseline
>
metrics
[
1
].
baseline
,
"got %f, old %f
\n
"
,
metrics
[
3
].
baseline
,
metrics
[
1
].
baseline
);
}
/* revert to original format */
hr
=
IDWriteTextLayout_SetFontSize
(
layout
,
12
.
0
f
,
range
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
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