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
2f9c6091
Commit
2f9c6091
authored
Apr 15, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use UnitPixel for metafile bounds when creating from HMETAFILE.
parent
f6e923b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
graphics.c
dlls/gdiplus/graphics.c
+3
-3
image.c
dlls/gdiplus/tests/image.c
+3
-3
No files found.
dlls/gdiplus/graphics.c
View file @
2f9c6091
...
...
@@ -1273,10 +1273,10 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
(
*
metafile
)
->
bounds
.
X
=
((
REAL
)
placeable
->
BoundingBox
.
Left
)
/
((
REAL
)
placeable
->
Inch
);
(
*
metafile
)
->
bounds
.
Y
=
((
REAL
)
placeable
->
BoundingBox
.
Top
)
/
((
REAL
)
placeable
->
Inch
);
(
*
metafile
)
->
bounds
.
Width
=
((
REAL
)
(
placeable
->
BoundingBox
.
Right
-
placeable
->
BoundingBox
.
Left
))
/
((
REAL
)
placeable
->
Inch
)
;
-
placeable
->
BoundingBox
.
Left
));
(
*
metafile
)
->
bounds
.
Height
=
((
REAL
)
(
placeable
->
BoundingBox
.
Bottom
-
placeable
->
BoundingBox
.
Top
))
/
((
REAL
)
placeable
->
Inch
)
;
(
*
metafile
)
->
unit
=
Unit
Inch
;
-
placeable
->
BoundingBox
.
Top
));
(
*
metafile
)
->
unit
=
Unit
Pixel
;
if
(
delete
)
DeleteMetaFile
(
hwmf
);
...
...
dlls/gdiplus/tests/image.c
View file @
2f9c6091
...
...
@@ -942,11 +942,11 @@ static void test_createfromwmf(void)
stat
=
GdipGetImageBounds
(
img
,
&
bounds
,
&
unit
);
expect
(
Ok
,
stat
);
todo_wine
expect
(
UnitPixel
,
unit
);
expect
(
UnitPixel
,
unit
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
todo_wine
expectf
(
320
.
0
,
bounds
.
Width
);
todo_wine
expectf
(
320
.
0
,
bounds
.
Height
);
expectf
(
320
.
0
,
bounds
.
Width
);
expectf
(
320
.
0
,
bounds
.
Height
);
stat
=
GdipGetImageHorizontalResolution
(
img
,
&
res
);
expect
(
Ok
,
stat
);
...
...
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