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
4c4c661b
Commit
4c4c661b
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 GdipEnumerateMetafileDestPoint and GdipEnumerateMetafileDestPointI.
parent
69d74ece
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
metafile.c
dlls/gdiplus/metafile.c
+30
-0
gdiplusflat.h
include/gdiplusflat.h
+4
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
4c4c661b
...
...
@@ -190,8 +190,8 @@
190 stdcall GdipDrawString(ptr wstr long ptr ptr ptr ptr)
191 stdcall GdipEmfToWmfBits(ptr long ptr long long)
192 stdcall GdipEndContainer(ptr ptr)
193 st
ub GdipEnumerateMetafileDestPoint
194 st
ub GdipEnumerateMetafileDestPointI
193 st
dcall GdipEnumerateMetafileDestPoint(ptr ptr ptr ptr ptr ptr)
194 st
dcall GdipEnumerateMetafileDestPointI(ptr ptr ptr ptr ptr ptr)
195 stub GdipEnumerateMetafileDestPoints
196 stub GdipEnumerateMetafileDestPointsI
197 stdcall GdipEnumerateMetafileDestRect(ptr ptr ptr ptr ptr ptr)
...
...
dlls/gdiplus/metafile.c
View file @
4c4c661b
...
...
@@ -584,6 +584,36 @@ GpStatus WINGDIPAPI GdipEnumerateMetafileDestRectI(GpGraphics *graphics,
return
GdipEnumerateMetafileDestRect
(
graphics
,
metafile
,
&
destf
,
callback
,
cb_data
,
attrs
);
}
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestPoint
(
GpGraphics
*
graphics
,
GDIPCONST
GpMetafile
*
metafile
,
GDIPCONST
GpPointF
*
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
=
units_to_pixels
(
metafile
->
bounds
.
Width
,
metafile
->
unit
,
metafile
->
image
.
xres
);
destf
.
Height
=
units_to_pixels
(
metafile
->
bounds
.
Height
,
metafile
->
unit
,
metafile
->
image
.
yres
);
return
GdipEnumerateMetafileDestRect
(
graphics
,
metafile
,
&
destf
,
callback
,
cb_data
,
attrs
);
}
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestPointI
(
GpGraphics
*
graphics
,
GDIPCONST
GpMetafile
*
metafile
,
GDIPCONST
GpPoint
*
dest
,
EnumerateMetafileProc
callback
,
VOID
*
cb_data
,
GDIPCONST
GpImageAttributes
*
attrs
)
{
GpPointF
ptf
;
if
(
!
graphics
||
!
metafile
||
!
dest
)
return
InvalidParameter
;
ptf
.
X
=
dest
->
X
;
ptf
.
Y
=
dest
->
Y
;
return
GdipEnumerateMetafileDestPoint
(
graphics
,
metafile
,
&
ptf
,
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 @
4c4c661b
...
...
@@ -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
GdipEnumerateMetafileDestPoint
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
GDIPCONST
GpPointF
*
,
EnumerateMetafileProc
,
VOID
*
,
GDIPCONST
GpImageAttributes
*
);
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestPointI
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
GDIPCONST
GpPoint
*
,
EnumerateMetafileProc
,
VOID
*
,
GDIPCONST
GpImageAttributes
*
);
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestRect
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
GDIPCONST
GpRectF
*
,
EnumerateMetafileProc
,
VOID
*
,
GDIPCONST
GpImageAttributes
*
);
GpStatus
WINGDIPAPI
GdipEnumerateMetafileDestRectI
(
GpGraphics
*
,
GDIPCONST
GpMetafile
*
,
...
...
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