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
f8edb068
Commit
f8edb068
authored
Feb 02, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipSetClipHrgn.
parent
bcfe4e7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+23
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
f8edb068
...
...
@@ -507,7 +507,7 @@
@ stdcall GdipSetAdjustableArrowCapMiddleInset(ptr long)
@ stdcall GdipSetAdjustableArrowCapWidth(ptr long)
@ stdcall GdipSetClipGraphics(ptr ptr long)
@ st
ub GdipSetClipHrgn
@ st
dcall GdipSetClipHrgn(ptr long long)
@ stdcall GdipSetClipPath(ptr ptr long)
@ stdcall GdipSetClipRect(ptr long long long long long)
@ stdcall GdipSetClipRectI(ptr long long long long long)
...
...
dlls/gdiplus/graphics.c
View file @
f8edb068
...
...
@@ -3083,6 +3083,29 @@ GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
return
GdipTranslateMatrix
(
graphics
->
worldtrans
,
dx
,
dy
,
order
);
}
/*****************************************************************************
* GdipSetClipHrgn [GDIPLUS.@]
*/
GpStatus
WINGDIPAPI
GdipSetClipHrgn
(
GpGraphics
*
graphics
,
HRGN
hrgn
,
CombineMode
mode
)
{
GpRegion
*
region
;
GpStatus
status
;
TRACE
(
"(%p, %p, %d)
\n
"
,
graphics
,
hrgn
,
mode
);
if
(
!
graphics
)
return
InvalidParameter
;
status
=
GdipCreateRegionHrgn
(
hrgn
,
&
region
);
if
(
status
!=
Ok
)
return
status
;
status
=
GdipSetClipRegion
(
graphics
,
region
,
mode
);
GdipDeleteRegion
(
region
);
return
status
;
}
GpStatus
WINGDIPAPI
GdipSetClipPath
(
GpGraphics
*
graphics
,
GpPath
*
path
,
CombineMode
mode
)
{
TRACE
(
"(%p, %p, %d)
\n
"
,
graphics
,
path
,
mode
);
...
...
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