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
7c12d889
Commit
7c12d889
authored
Jan 16, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement SetPageTransform playback.
parent
6518edfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
metafile.c
dlls/gdiplus/metafile.c
+23
-3
No files found.
dlls/gdiplus/metafile.c
View file @
7c12d889
...
...
@@ -528,9 +528,15 @@ static GpStatus METAFILE_PlaybackUpdateWorldTransform(GpMetafile *metafile)
if
(
stat
==
Ok
)
{
/* FIXME: Prepend page transform. */
REAL
scale
=
units_to_pixels
(
1
.
0
,
metafile
->
page_unit
,
96
.
0
);
stat
=
GdipMultiplyMatrix
(
real_transform
,
metafile
->
world_transform
,
MatrixOrderPrepend
);
if
(
metafile
->
page_unit
!=
UnitDisplay
)
scale
*=
metafile
->
page_scale
;
stat
=
GdipScaleMatrix
(
real_transform
,
scale
,
scale
,
MatrixOrderPrepend
);
if
(
stat
==
Ok
)
stat
=
GdipMultiplyMatrix
(
real_transform
,
metafile
->
world_transform
,
MatrixOrderPrepend
);
if
(
stat
==
Ok
)
stat
=
GdipSetWorldTransform
(
metafile
->
playback_graphics
,
real_transform
);
...
...
@@ -545,6 +551,7 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
EmfPlusRecordType
recordType
,
UINT
flags
,
UINT
dataSize
,
GDIPCONST
BYTE
*
data
)
{
GpStatus
stat
;
GpMetafile
*
real_metafile
=
(
GpMetafile
*
)
metafile
;
TRACE
(
"(%p,%x,%x,%d,%p)
\n
"
,
metafile
,
recordType
,
flags
,
dataSize
,
data
);
...
...
@@ -655,6 +662,19 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
return
stat
;
}
case
EmfPlusRecordTypeSetPageTransform
:
{
EmfPlusSetPageTransform
*
record
=
(
EmfPlusSetPageTransform
*
)
header
;
GpUnit
unit
=
(
GpUnit
)
flags
;
if
(
dataSize
+
sizeof
(
EmfPlusRecordHeader
)
<
sizeof
(
EmfPlusSetPageTransform
))
return
InvalidParameter
;
real_metafile
->
page_unit
=
unit
;
real_metafile
->
page_scale
=
record
->
PageScale
;
return
METAFILE_PlaybackUpdateWorldTransform
(
real_metafile
);
}
default:
FIXME
(
"Not implemented for record type %x
\n
"
,
recordType
);
return
NotImplemented
;
...
...
@@ -774,7 +794,7 @@ GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoints(GpGraphics *graphics,
if
(
stat
==
Ok
)
{
real_metafile
->
page_unit
=
Unit
Pixel
;
/* FIXME: Use frame unit here? */
real_metafile
->
page_unit
=
Unit
Display
;
real_metafile
->
page_scale
=
1
.
0
;
stat
=
METAFILE_PlaybackUpdateWorldTransform
(
real_metafile
);
}
...
...
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