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
c7a6c1af
Commit
c7a6c1af
authored
Jan 14, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Initialize more fields in GetEnumStructs.
parent
d9732715
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
freetype.c
dlls/gdi32/freetype.c
+5
-5
No files found.
dlls/gdi32/freetype.c
View file @
c7a6c1af
...
...
@@ -3290,8 +3290,6 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
font
->
name
=
strdupW
(
face
->
family
->
FamilyName
);
font
->
ntmFlags
=
face
->
ntmFlags
;
memset
(
&
pelf
->
elfLogFont
,
0
,
sizeof
(
LOGFONTW
));
if
(
WineEngGetOutlineTextMetrics
(
font
,
0
,
NULL
))
{
memcpy
(
&
pntm
->
ntmTm
,
&
font
->
potm
->
otmTextMetrics
,
sizeof
(
TEXTMETRICW
));
...
...
@@ -3315,17 +3313,19 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
pntm
->
ntmTm
.
ntmSizeEM
=
pntm
->
ntmTm
.
tmHeight
-
pntm
->
ntmTm
.
tmInternalLeading
;
lstrcpynW
(
pelf
->
elfLogFont
.
lfFaceName
,
face
->
family
->
FamilyName
,
LF_FACESIZE
);
lstrcpynW
(
pelf
->
elfFullName
,
face
->
family
->
FamilyName
,
LF_FACESIZE
);
pelf
->
elfStyle
[
0
]
=
'\0'
;
lstrcpynW
(
pelf
->
elfFullName
,
face
->
family
->
FamilyName
,
LF_F
ULLF
ACESIZE
);
lstrcpynW
(
pelf
->
elfStyle
,
face
->
StyleName
,
LF_FACESIZE
)
;
}
pntm
->
ntmTm
.
ntmFlags
=
face
->
ntmFlags
;
pntm
->
ntmTm
.
ntmCellHeight
=
pntm
->
ntmTm
.
tmHeight
;
pntm
->
ntmTm
.
ntmAvgWidth
=
pntm
->
ntmTm
.
tmAveCharWidth
;
mem
set
(
&
pntm
->
ntmFontSig
,
0
,
sizeof
(
FONTSIGNATURE
));
mem
cpy
(
&
pntm
->
ntmFontSig
,
&
face
->
fs
,
sizeof
(
FONTSIGNATURE
));
pelf
->
elfScript
[
0
]
=
'\0'
;
/* This will get set in WineEngEnumFonts */
pelf
->
elfLogFont
.
lfEscapement
=
0
;
pelf
->
elfLogFont
.
lfOrientation
=
0
;
pelf
->
elfLogFont
.
lfHeight
=
pntm
->
ntmTm
.
tmHeight
;
pelf
->
elfLogFont
.
lfWidth
=
pntm
->
ntmTm
.
tmAveCharWidth
;
pelf
->
elfLogFont
.
lfWeight
=
pntm
->
ntmTm
.
tmWeight
;
...
...
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