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
93eae5e8
Commit
93eae5e8
authored
Aug 04, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipCombineRegionPath.
parent
2a445d0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
region.c
dlls/gdiplus/region.c
+32
-2
region.c
dlls/gdiplus/tests/region.c
+0
-1
No files found.
dlls/gdiplus/region.c
View file @
93eae5e8
...
...
@@ -252,8 +252,38 @@ GpStatus WINGDIPAPI GdipCloneRegion(GpRegion *region, GpRegion **clone)
GpStatus
WINGDIPAPI
GdipCombineRegionPath
(
GpRegion
*
region
,
GpPath
*
path
,
CombineMode
mode
)
{
FIXME
(
"(%p %p %d): stub
\n
"
,
region
,
path
,
mode
);
return
NotImplemented
;
GpRegion
*
path_region
;
region_element
*
left
,
*
right
=
NULL
;
GpStatus
stat
;
TRACE
(
"%p %p %d
\n
"
,
region
,
path
,
mode
);
if
(
!
(
region
&&
path
))
return
InvalidParameter
;
stat
=
GdipCreateRegionPath
(
path
,
&
path_region
);
if
(
stat
!=
Ok
)
return
stat
;
left
=
GdipAlloc
(
sizeof
(
region_element
));
if
(
!
left
)
goto
out
;
*
left
=
region
->
node
;
stat
=
clone_element
(
&
path_region
->
node
,
&
right
);
if
(
stat
!=
Ok
)
goto
out
;
fuse_region
(
region
,
left
,
right
,
mode
);
GdipDeleteRegion
(
path_region
);
return
Ok
;
out:
GdipFree
(
left
);
delete_element
(
right
);
GdipDeleteRegion
(
path_region
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipCombineRegionRect
(
GpRegion
*
region
,
...
...
dlls/gdiplus/tests/region.c
View file @
93eae5e8
...
...
@@ -70,7 +70,6 @@ static void test_getregiondata(void)
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
todo_wine
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
sizeof
(
buf
),
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
...
...
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