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
a82cdfc0
Commit
a82cdfc0
authored
Jan 19, 2009
by
Erich Hoover
Committed by
Alexandre Julliard
Jan 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix OLEPicture rendering vector metafiles without setting up the source rectangle.
parent
a00ce600
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
olepicture.c
dlls/oleaut32/olepicture.c
+12
-2
No files found.
dlls/oleaut32/olepicture.c
View file @
a82cdfc0
...
...
@@ -710,17 +710,27 @@ static HRESULT WINAPI OLEPictureImpl_Render(IPicture *iface, HDC hdc,
case
PICTYPE_METAFILE
:
{
POINT
prevOrg
;
SIZE
prevExt
;
POINT
prevOrg
,
prevWndOrg
;
SIZE
prevExt
,
prevWndExt
;
int
oldmode
;
/* Render the WMF to the appropriate location by setting the
appropriate ratio between "device units" and "logical units" */
oldmode
=
SetMapMode
(
hdc
,
MM_ANISOTROPIC
);
/* For the "source rectangle" the y-axis must be inverted */
SetWindowOrgEx
(
hdc
,
xSrc
,
This
->
himetricHeight
-
ySrc
,
&
prevWndOrg
);
SetWindowExtEx
(
hdc
,
cxSrc
,
-
cySrc
,
&
prevWndExt
);
/* For the "destination rectangle" no inversion is necessary */
SetViewportOrgEx
(
hdc
,
x
,
y
,
&
prevOrg
);
SetViewportExtEx
(
hdc
,
cx
,
cy
,
&
prevExt
);
if
(
!
PlayMetaFile
(
hdc
,
This
->
desc
.
u
.
wmf
.
hmeta
))
ERR
(
"PlayMetaFile failed!
\n
"
);
/* We're done, restore the DC to the previous settings for converting
logical units to device units */
SetWindowExtEx
(
hdc
,
prevWndExt
.
cx
,
prevWndExt
.
cy
,
NULL
);
SetWindowOrgEx
(
hdc
,
prevWndOrg
.
x
,
prevWndOrg
.
y
,
NULL
);
SetViewportExtEx
(
hdc
,
prevExt
.
cx
,
prevExt
.
cy
,
NULL
);
SetViewportOrgEx
(
hdc
,
prevOrg
.
x
,
prevOrg
.
y
,
NULL
);
SetMapMode
(
hdc
,
oldmode
);
...
...
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