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
fcae48a0
Commit
fcae48a0
authored
Oct 26, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Layout can't be created without text format.
parent
1b449f45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
layout.c
dlls/dwrite/layout.c
+5
-8
No files found.
dlls/dwrite/layout.c
View file @
fcae48a0
...
...
@@ -681,14 +681,11 @@ HRESULT create_textlayout(const WCHAR *str, UINT32 len, IDWriteTextFormat *forma
memset
(
&
This
->
format
,
0
,
sizeof
(
This
->
format
));
/* reference is not kept here, instead copy all underlying data */
if
(
format
)
{
IDWriteTextFormat_GetFontCollection
(
format
,
&
This
->
format
.
collection
);
This
->
format
.
weight
=
IDWriteTextFormat_GetFontWeight
(
format
);
This
->
format
.
style
=
IDWriteTextFormat_GetFontStyle
(
format
);
This
->
format
.
stretch
=
IDWriteTextFormat_GetFontStretch
(
format
);
This
->
format
.
size
=
IDWriteTextFormat_GetFontSize
(
format
);
}
IDWriteTextFormat_GetFontCollection
(
format
,
&
This
->
format
.
collection
);
This
->
format
.
weight
=
IDWriteTextFormat_GetFontWeight
(
format
);
This
->
format
.
style
=
IDWriteTextFormat_GetFontStyle
(
format
);
This
->
format
.
stretch
=
IDWriteTextFormat_GetFontStretch
(
format
);
This
->
format
.
size
=
IDWriteTextFormat_GetFontSize
(
format
);
*
layout
=
&
This
->
IDWriteTextLayout_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