Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4f5838fb
Commit
4f5838fb
authored
Feb 12, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EMF positioning when rclFrame has a non-zero origin.
parent
40774c3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
enhmetafile.c
objects/enhmetafile.c
+9
-2
No files found.
objects/enhmetafile.c
View file @
4f5838fb
...
...
@@ -1292,6 +1292,11 @@ BOOL WINAPI EnumEnhMetaFile(
if
(
hdc
)
{
TRACE
(
"rect: %d,%d - %d,%d. rclFrame: %ld,%ld - %ld,%ld
\n
"
,
lpRect
->
left
,
lpRect
->
top
,
lpRect
->
right
,
lpRect
->
bottom
,
emh
->
rclFrame
.
left
,
emh
->
rclFrame
.
top
,
emh
->
rclFrame
.
right
,
emh
->
rclFrame
.
bottom
);
xSrcPixSize
=
(
FLOAT
)
emh
->
szlMillimeters
.
cx
/
emh
->
szlDevice
.
cx
;
ySrcPixSize
=
(
FLOAT
)
emh
->
szlMillimeters
.
cy
/
emh
->
szlDevice
.
cy
;
xscale
=
(
FLOAT
)(
lpRect
->
right
-
lpRect
->
left
)
*
100
.
0
/
...
...
@@ -1303,8 +1308,10 @@ BOOL WINAPI EnumEnhMetaFile(
xform
.
eM12
=
0
;
xform
.
eM21
=
0
;
xform
.
eM22
=
yscale
;
xform
.
eDx
=
(
FLOAT
)
lpRect
->
left
-
(
xscale
*
emh
->
rclFrame
.
left
*
0
.
5
);
xform
.
eDy
=
(
FLOAT
)
lpRect
->
top
-
(
yscale
*
(
FLOAT
)
emh
->
rclFrame
.
top
*
0
.
5
);
xform
.
eDx
=
(
FLOAT
)
lpRect
->
left
-
(
lpRect
->
right
-
lpRect
->
left
)
*
emh
->
rclFrame
.
left
/
(
emh
->
rclFrame
.
right
-
emh
->
rclFrame
.
left
);
xform
.
eDy
=
(
FLOAT
)
lpRect
->
top
-
(
lpRect
->
bottom
-
lpRect
->
top
)
*
emh
->
rclFrame
.
top
/
(
emh
->
rclFrame
.
bottom
-
emh
->
rclFrame
.
top
);
savedMode
=
SetGraphicsMode
(
hdc
,
GM_ADVANCED
);
GetWorldTransform
(
hdc
,
&
savedXform
);
...
...
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