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
67d452d8
Commit
67d452d8
authored
Oct 21, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Always initialize the em_scale variable.
parent
82c4fa35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
freetype.c
dlls/gdi32/freetype.c
+2
-1
No files found.
dlls/gdi32/freetype.c
View file @
67d452d8
...
...
@@ -6386,11 +6386,12 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
/* metrics.width = min( metrics.width, ptm->tmMaxCharWidth << 6 ); */
}
em_scale
=
MulDiv
(
incoming_font
->
ppem
,
1
<<
16
,
incoming_font
->
ft_face
->
units_per_EM
);
if
(
FT_IS_SCALABLE
(
incoming_font
->
ft_face
))
{
TEXTMETRICW
tm
;
if
(
get_text_metrics
(
incoming_font
,
&
tm
)
&&
!
(
tm
.
tmPitchAndFamily
&
TMPF_FIXED_PITCH
))
{
em_scale
=
MulDiv
(
incoming_font
->
ppem
,
1
<<
16
,
incoming_font
->
ft_face
->
units_per_EM
);
avgAdvance
=
pFT_MulFix
(
incoming_font
->
ntmAvgWidth
,
em_scale
);
if
(
avgAdvance
&&
(
metrics
.
horiAdvance
+
63
)
>>
6
==
pFT_MulFix
(
incoming_font
->
ntmAvgWidth
*
2
,
em_scale
))
...
...
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