Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5bc8ddd8
Commit
5bc8ddd8
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 GdipCombineRegionRectI.
parent
4090aa43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
region.c
dlls/gdiplus/region.c
+15
-4
region.c
dlls/gdiplus/tests/region.c
+3
-15
No files found.
dlls/gdiplus/region.c
View file @
5bc8ddd8
...
...
@@ -293,11 +293,22 @@ out:
return
stat
;
}
GpStatus
WINGDIPAPI
GdipCombineRegionRectI
(
GpRegion
*
region
,
GDIPCONST
GpRect
*
rect
,
CombineMode
mode
)
GpStatus
WINGDIPAPI
GdipCombineRegionRectI
(
GpRegion
*
region
,
GDIPCONST
GpRect
*
rect
,
CombineMode
mode
)
{
FIXME
(
"(%p %p %d): stub
\n
"
,
region
,
rect
,
mode
);
return
NotImplemented
;
GpRectF
rectf
;
TRACE
(
"%p %p %d
\n
"
,
region
,
rect
,
mode
);
if
(
!
rect
)
return
InvalidParameter
;
rectf
.
X
=
(
REAL
)
rect
->
X
;
rectf
.
Y
=
(
REAL
)
rect
->
Y
;
rectf
.
Height
=
(
REAL
)
rect
->
Height
;
rectf
.
Width
=
(
REAL
)
rect
->
Width
;
return
GdipCombineRegionRect
(
region
,
&
rectf
,
mode
);
}
GpStatus
WINGDIPAPI
GdipCombineRegionRegion
(
GpRegion
*
region1
,
GpRegion
*
region2
,
...
...
dlls/gdiplus/tests/region.c
View file @
5bc8ddd8
...
...
@@ -137,8 +137,6 @@ todo_wine
rect
.
Y
=
30
;
rect
.
Width
=
10
;
rect
.
Height
=
20
;
todo_wine
{
status
=
GdipCombineRegionRectI
(
region
,
&
rect
,
CombineModeIntersect
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
rect
.
X
=
100
;
...
...
@@ -147,7 +145,6 @@ todo_wine
rect
.
Height
=
50
;
status
=
GdipCombineRegionRectI
(
region
,
&
rect
,
CombineModeXor
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
}
rect
.
X
=
200
;
rect
.
Y
=
100
;
...
...
@@ -159,12 +156,11 @@ todo_wine
rect
.
Y
=
10
;
rect
.
Width
=
40
;
rect
.
Height
=
66
;
todo_wine
{
status
=
GdipCombineRegionRectI
(
region2
,
&
rect
,
CombineModeUnion
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipCombineRegionRegion
(
region
,
region2
,
CombineModeComplement
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
rect
.
X
=
400
;
...
...
@@ -174,7 +170,6 @@ todo_wine
status
=
GdipCombineRegionRectI
(
region
,
&
rect
,
CombineModeExclude
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
}
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
todo_wine
...
...
@@ -189,9 +184,10 @@ todo_wine
trace
(
"buf[1] = %08x
\n
"
,
buf
[
1
]);
expect_magic
((
DWORD
*
)(
buf
+
2
));
todo_wine
{
expect_dword
(
buf
+
3
,
10
);
expect_dword
(
buf
+
4
,
CombineModeExclude
);
todo_wine
{
expect_dword
(
buf
+
5
,
CombineModeComplement
);
expect_dword
(
buf
+
6
,
CombineModeXor
);
expect_dword
(
buf
+
7
,
CombineModeIntersect
);
...
...
@@ -272,23 +268,16 @@ todo_wine
rect
.
Width
=
10
;
rect
.
Height
=
20
;
status
=
GdipCombineRegionRectI
(
region
,
&
rect
,
CombineModeIntersect
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
todo_wine
expect
(
96
,
needed
);
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
sizeof
(
buf
),
&
needed
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
todo_wine
{
expect
(
96
,
needed
);
expect_dword
(
buf
,
88
);
trace
(
"buf[1] = %08x
\n
"
,
buf
[
1
]);
}
expect_magic
((
DWORD
*
)(
buf
+
2
));
todo_wine
{
expect_dword
(
buf
+
3
,
2
);
expect_dword
(
buf
+
4
,
CombineModeIntersect
);
expect_dword
(
buf
+
5
,
RGNDATA_PATH
);
...
...
@@ -310,7 +299,6 @@ todo_wine
expect_float
(
buf
+
21
,
30
.
0
);
expect_float
(
buf
+
22
,
10
.
0
);
expect_float
(
buf
+
23
,
20
.
0
);
}
status
=
GdipDeleteRegion
(
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
...
...
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