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
3f647088
Commit
3f647088
authored
Jun 30, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
Jul 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix double->fixpoint conversion in freetype.c.
parent
2a139746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
freetype.c
dlls/gdi32/freetype.c
+3
-6
No files found.
dlls/gdi32/freetype.c
View file @
3f647088
...
@@ -803,15 +803,12 @@ static inline BOOL is_win9x(void)
...
@@ -803,15 +803,12 @@ static inline BOOL is_win9x(void)
return
GetVersion
()
&
0x80000000
;
return
GetVersion
()
&
0x80000000
;
}
}
/*
/*
This function builds an FT_Fixed from a float. It puts the integer part
This function builds an FT_Fixed from a double. It fails if the absolute
in the highest 16 bits and the decimal part in the lowest 16 bits of the FT_Fixed.
value of the float number is greater than 32768.
It fails if the integer part of the float number is greater than SHORT_MAX.
*/
*/
static
inline
FT_Fixed
FT_FixedFromFloat
(
double
f
)
static
inline
FT_Fixed
FT_FixedFromFloat
(
double
f
)
{
{
short
value
=
f
;
return
f
*
0x10000
;
unsigned
short
fract
=
(
f
-
value
)
*
0xFFFF
;
return
(
FT_Fixed
)((
long
)
value
<<
16
|
(
unsigned
long
)
fract
);
}
}
/*
/*
...
...
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