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
e663816d
Commit
e663816d
authored
Jun 27, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Improve accuracy in calculating point sizes.
parent
db917247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
font.c
dlls/gdiplus/font.c
+4
-3
No files found.
dlls/gdiplus/font.c
View file @
e663816d
...
...
@@ -33,7 +33,8 @@ WINE_DEFAULT_DEBUG_CHANNEL (gdiplus);
#include "gdiplus.h"
#include "gdiplus_private.h"
static
const
REAL
mm_per_pixel
=
25
.
4
;
static
const
REAL
mm_per_inch
=
25
.
4
;
static
const
REAL
inch_per_point
=
1
.
0
/
72
.
0
;
static
inline
REAL
get_dpi
(
void
)
{
...
...
@@ -50,7 +51,7 @@ static inline REAL get_dpi (void)
static
inline
REAL
point_to_pixel
(
REAL
point
)
{
return
point
*
1
.
5
;
return
point
*
get_dpi
()
*
inch_per_point
;
}
static
inline
REAL
inch_to_pixel
(
REAL
inch
)
...
...
@@ -65,7 +66,7 @@ static inline REAL document_to_pixel (REAL doc)
static
inline
REAL
mm_to_pixel
(
REAL
mm
)
{
return
mm
*
(
get_dpi
()
/
mm_per_
pixel
);
return
mm
*
(
get_dpi
()
/
mm_per_
inch
);
}
/*******************************************************************************
...
...
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