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
69d74ece
Commit
69d74ece
authored
May 06, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipEnumerateMetafileDestRect and GdipEnumerateMetafileDestRectI.
parent
19e2b37f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
metafile.c
dlls/gdiplus/metafile.c
+33
-0
gdiplusflat.h
include/gdiplusflat.h
+4
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
69d74ece
...
...
@@ -194,8 +194,8 @@
194 stub GdipEnumerateMetafileDestPointI
195 stub GdipEnumerateMetafileDestPoints
196 stub GdipEnumerateMetafileDestPointsI
197 st
ub GdipEnumerateMetafileDestRect
198 st
ub GdipEnumerateMetafileDestRectI
197 st
dcall GdipEnumerateMetafileDestRect(ptr ptr ptr ptr ptr ptr)
198 st
dcall GdipEnumerateMetafileDestRectI(ptr ptr ptr ptr ptr ptr)
199 stub GdipEnumerateMetafileSrcRectDestPoint
200 stub GdipEnumerateMetafileSrcRectDestPointI
201 stdcall GdipEnumerateMetafileSrcRectDestPoints(ptr ptr ptr long ptr long ptr ptr ptr)
...
...
dlls/gdiplus/metafile.c
View file @
69d74ece
...
...
@@ -551,6 +551,39 @@ GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoints(GpGraphics *graphics,
return
stat
;
}
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestRect
(
GpGraphics
*
graphics
,
GDIPCONST
GpMetafile
*
metafile
,
GDIPCONST
GpRectF
*
dest
,
EnumerateMetafileProc
callback
,
VOID
*
cb_data
,
GDIPCONST
GpImageAttributes
*
attrs
)
{
GpPointF
points
[
3
];
if
(
!
graphics
||
!
metafile
||
!
dest
)
return
InvalidParameter
;
points
[
0
].
X
=
points
[
2
].
X
=
dest
->
X
;
points
[
0
].
Y
=
points
[
1
].
Y
=
dest
->
Y
;
points
[
1
].
X
=
dest
->
X
+
dest
->
Width
;
points
[
2
].
Y
=
dest
->
Y
+
dest
->
Height
;
return
GdipEnumerateMetafileSrcRectDestPoints
(
graphics
,
metafile
,
points
,
3
,
&
metafile
->
bounds
,
metafile
->
unit
,
callback
,
cb_data
,
attrs
);
}
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestRectI
(
GpGraphics
*
graphics
,
GDIPCONST
GpMetafile
*
metafile
,
GDIPCONST
GpRect
*
dest
,
EnumerateMetafileProc
callback
,
VOID
*
cb_data
,
GDIPCONST
GpImageAttributes
*
attrs
)
{
GpRectF
destf
;
if
(
!
graphics
||
!
metafile
||
!
dest
)
return
InvalidParameter
;
destf
.
X
=
dest
->
X
;
destf
.
Y
=
dest
->
Y
;
destf
.
Width
=
dest
->
Width
;
destf
.
Height
=
dest
->
Height
;
return
GdipEnumerateMetafileDestRect
(
graphics
,
metafile
,
&
destf
,
callback
,
cb_data
,
attrs
);
}
static
int
CALLBACK
get_metafile_type_proc
(
HDC
hDC
,
HANDLETABLE
*
lpHTable
,
const
ENHMETARECORD
*
lpEMFR
,
int
nObj
,
LPARAM
lpData
)
{
...
...
include/gdiplusflat.h
View file @
69d74ece
...
...
@@ -206,6 +206,10 @@ GpStatus WINGDIPAPI GdipDrawRectanglesI(GpGraphics*,GpPen*,GDIPCONST GpRect*,INT
GpStatus
WINGDIPAPI
GdipDrawString
(
GpGraphics
*
,
GDIPCONST
WCHAR
*
,
INT
,
GDIPCONST
GpFont
*
,
GDIPCONST
RectF
*
,
GDIPCONST
GpStringFormat
*
,
GDIPCONST
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestRect
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
GDIPCONST
GpRectF
*
,
EnumerateMetafileProc
,
VOID
*
,
GDIPCONST
GpImageAttributes
*
);
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestRectI
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
GDIPCONST
GpRect
*
,
EnumerateMetafileProc
,
VOID
*
,
GDIPCONST
GpImageAttributes
*
);
GpStatus
WINGDIPAPI
GdipEnumerateMetafileSrcRectDestPoints
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
GDIPCONST
GpPointF
*
,
INT
,
GDIPCONST
GpRectF
*
,
Unit
,
EnumerateMetafileProc
,
VOID
*
,
GDIPCONST
GpImageAttributes
*
);
...
...
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