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
b7679da9
Commit
b7679da9
authored
Mar 25, 2010
by
Justin Chevrier
Committed by
Alexandre Julliard
Mar 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Handle UnitWorld in GdipGetFontHeightGivenDPI.
parent
cf5c16c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
font.c
dlls/gdiplus/font.c
+1
-0
font.c
dlls/gdiplus/tests/font.c
+2
-2
No files found.
dlls/gdiplus/font.c
View file @
b7679da9
...
...
@@ -489,6 +489,7 @@ GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi,
switch
(
font
->
unit
)
{
case
UnitPixel
:
case
UnitWorld
:
*
height
=
font_height
;
break
;
case
UnitPoint
:
...
...
dlls/gdiplus/tests/font.c
View file @
b7679da9
...
...
@@ -381,8 +381,8 @@ static void test_heightgivendpi(void)
stat
=
GdipCreateFont
(
fontfamily
,
30
,
FontStyleRegular
,
UnitWorld
,
&
font
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFontHeightGivenDPI
(
font
,
96
,
&
height
);
todo_wine
expect
(
Ok
,
stat
);
todo_wine
expectf
((
REAL
)
34
.
497070
,
height
);
expect
(
Ok
,
stat
);
expectf
((
REAL
)
34
.
497070
,
height
);
GdipDeleteFont
(
font
);
height
=
12345
;
...
...
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