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
2bcc1c07
Commit
2bcc1c07
authored
Aug 22, 2005
by
Walt Ogburn
Committed by
Alexandre Julliard
Aug 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When applying logical / himetric ratio to olefont sizes, must divide
by the standard ratio 72 / 2540.
parent
187f7a4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
olefont.c
dlls/oleaut32/olefont.c
+4
-2
No files found.
dlls/oleaut32/olefont.c
View file @
2bcc1c07
...
...
@@ -953,7 +953,9 @@ static HRESULT WINAPI OLEFontImpl_get_hFont(
*/
IFont_get_Size
(
iface
,
&
cySize
);
fontHeight
=
MulDiv
(
cySize
.
s
.
Lo
,
this
->
cyLogical
,
this
->
cyHimetric
);
/* Standard ratio is 72 / 2540, or 18 / 635 in lowest terms. */
/* Ratio is applied here relative to the standard. */
fontHeight
=
MulDiv
(
cySize
.
s
.
Lo
,
this
->
cyLogical
*
635
,
this
->
cyHimetric
*
18
);
memset
(
&
logFont
,
0
,
sizeof
(
LOGFONTW
));
...
...
@@ -1020,7 +1022,7 @@ static HRESULT WINAPI OLEFontImpl_Clone(
/* We need to clone the HFONT too. This is just cut & paste from above */
IFont_get_Size
(
iface
,
&
cySize
);
fontHeight
=
MulDiv
(
cySize
.
s
.
Lo
,
this
->
cyLogical
,
this
->
cyHimetric
);
fontHeight
=
MulDiv
(
cySize
.
s
.
Lo
,
this
->
cyLogical
*
635
,
this
->
cyHimetric
*
18
);
memset
(
&
logFont
,
0
,
sizeof
(
LOGFONTW
));
...
...
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