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
04d4c262
Commit
04d4c262
authored
Aug 09, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipDrawImageRectRect.
parent
9c30236d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+20
-1
gdiplusflat.h
include/gdiplusflat.h
+3
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
04d4c262
...
...
@@ -183,7 +183,7 @@
@ stub GdipDrawImagePointsRectI
@ stub GdipDrawImageRect
@ stub GdipDrawImageRectI
@ st
ub GdipDrawImageRectRect
@ st
dcall GdipDrawImageRectRect(ptr ptr long long long long long long long long long ptr long ptr)
@ stub GdipDrawImageRectRectI
@ stdcall GdipDrawLine(ptr ptr long long long long)
@ stdcall GdipDrawLineI(ptr ptr long long long long)
...
...
dlls/gdiplus/graphics.c
View file @
04d4c262
...
...
@@ -1018,7 +1018,7 @@ GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x,
return
Ok
;
}
/* FIXME: partially implemented */
/* FIXME: partially implemented
(only works for rectangular parallelograms)
*/
GpStatus
WINGDIPAPI
GdipDrawImagePointsRect
(
GpGraphics
*
graphics
,
GpImage
*
image
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
srcx
,
REAL
srcy
,
REAL
srcwidth
,
REAL
srcheight
,
GpUnit
srcUnit
,
GDIPCONST
GpImageAttributes
*
imageAttributes
,
...
...
@@ -1071,6 +1071,25 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawImageRectRect
(
GpGraphics
*
graphics
,
GpImage
*
image
,
REAL
dstx
,
REAL
dsty
,
REAL
dstwidth
,
REAL
dstheight
,
REAL
srcx
,
REAL
srcy
,
REAL
srcwidth
,
REAL
srcheight
,
GpUnit
srcUnit
,
GDIPCONST
GpImageAttributes
*
imageattr
,
DrawImageAbort
callback
,
VOID
*
callbackData
)
{
GpPointF
points
[
3
];
points
[
0
].
X
=
dstx
;
points
[
0
].
Y
=
dsty
;
points
[
1
].
X
=
dstx
+
dstwidth
;
points
[
1
].
Y
=
dsty
;
points
[
2
].
X
=
dstx
;
points
[
2
].
Y
=
dsty
+
dstheight
;
return
GdipDrawImagePointsRect
(
graphics
,
image
,
points
,
3
,
srcx
,
srcy
,
srcwidth
,
srcheight
,
srcUnit
,
imageattr
,
callback
,
callbackData
);
}
GpStatus
WINGDIPAPI
GdipDrawLine
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x1
,
REAL
y1
,
REAL
x2
,
REAL
y2
)
{
...
...
include/gdiplusflat.h
View file @
04d4c262
...
...
@@ -66,6 +66,9 @@ GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics*,GpImage*,INT,INT);
GpStatus
WINGDIPAPI
GdipDrawImagePointsRect
(
GpGraphics
*
,
GpImage
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
,
REAL
,
REAL
,
REAL
,
GpUnit
,
GDIPCONST
GpImageAttributes
*
,
DrawImageAbort
,
VOID
*
);
GpStatus
WINGDIPAPI
GdipDrawImageRectRect
(
GpGraphics
*
,
GpImage
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
GpUnit
,
GDIPCONST
GpImageAttributes
*
,
DrawImageAbort
,
VOID
*
);
GpStatus
WINGDIPAPI
GdipDrawLine
(
GpGraphics
*
graphics
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawLines
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
...
...
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