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
e2817e59
Commit
e2817e59
authored
Sep 26, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipSetClipPath.
parent
cc5ff833
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletion
+22
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+13
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+7
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
e2817e59
...
...
@@ -508,7 +508,7 @@
@ stdcall GdipSetAdjustableArrowCapWidth(ptr long)
@ stub GdipSetClipGraphics
@ stub GdipSetClipHrgn
@ st
ub GdipSetClipPath
@ st
dcall GdipSetClipPath(ptr ptr long)
@ stdcall GdipSetClipRect(ptr long long long long long)
@ stdcall GdipSetClipRectI(ptr long long long long long)
@ stdcall GdipSetClipRegion(ptr ptr long)
...
...
dlls/gdiplus/graphics.c
View file @
e2817e59
...
...
@@ -2948,6 +2948,19 @@ GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
return
GdipTranslateMatrix
(
graphics
->
worldtrans
,
dx
,
dy
,
order
);
}
GpStatus
WINGDIPAPI
GdipSetClipPath
(
GpGraphics
*
graphics
,
GpPath
*
path
,
CombineMode
mode
)
{
TRACE
(
"(%p, %p, %d)
\n
"
,
graphics
,
path
,
mode
);
if
(
!
graphics
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
return
GdipCombineRegionPath
(
graphics
->
clip
,
path
,
mode
);
}
GpStatus
WINGDIPAPI
GdipSetClipRect
(
GpGraphics
*
graphics
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
CombineMode
mode
)
...
...
dlls/gdiplus/tests/graphics.c
View file @
e2817e59
...
...
@@ -706,6 +706,8 @@ static void test_Get_Release_DC(void)
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipTranslateWorldTransform
(
graphics
,
0
.
0
,
0
.
0
,
MatrixOrderPrepend
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipSetClipPath
(
graphics
,
path
,
CombineModeReplace
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipSetClipRect
(
graphics
,
0
.
0
,
0
.
0
,
10
.
0
,
10
.
0
,
CombineModeReplace
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipSetClipRectI
(
graphics
,
0
,
0
,
10
,
10
,
CombineModeReplace
);
...
...
@@ -804,6 +806,11 @@ static void test_get_set_clip(void)
status
=
GdipSetClipRegion
(
graphics
,
NULL
,
CombineModeReplace
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetClipPath
(
NULL
,
NULL
,
CombineModeReplace
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetClipPath
(
graphics
,
NULL
,
CombineModeReplace
);
expect
(
InvalidParameter
,
status
);
res
=
FALSE
;
status
=
GdipGetClip
(
graphics
,
clip
);
expect
(
Ok
,
status
);
...
...
include/gdiplusflat.h
View file @
e2817e59
...
...
@@ -533,6 +533,7 @@ GpStatus WINGDIPAPI GdipTranslateRegionI(GpRegion *, INT, INT);
GpStatus
WINGDIPAPI
GdipFlush
(
GpGraphics
*
,
GpFlushIntention
);
GpStatus
WINGDIPAPI
GdipSetMetafileDownLevelRasterizationLimit
(
GpMetafile
*
,
UINT
);
GpStatus
WINGDIPAPI
GdipSetClipPath
(
GpGraphics
*
,
GpPath
*
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipSetClipRect
(
GpGraphics
*
,
REAL
,
REAL
,
REAL
,
REAL
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipSetClipRectI
(
GpGraphics
*
,
INT
,
INT
,
INT
,
INT
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipFillRegion
(
GpGraphics
*
,
GpBrush
*
,
GpRegion
*
);
...
...
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