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
430ce86a
Commit
430ce86a
authored
Jul 24, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetRegionDataSize.
parent
2e086998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
region.c
dlls/gdiplus/region.c
+8
-2
region.c
dlls/gdiplus/tests/region.c
+12
-4
No files found.
dlls/gdiplus/region.c
View file @
430ce86a
...
...
@@ -267,9 +267,15 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size,
GpStatus
WINGDIPAPI
GdipGetRegionDataSize
(
GpRegion
*
region
,
UINT
*
needed
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
region
,
needed
);
if
(
!
(
region
&&
needed
))
return
InvalidParameter
;
return
NotImplemented
;
TRACE
(
"%p, %p
\n
"
,
region
,
needed
);
/* header.size doesn't count header.size and header.checksum */
*
needed
=
region
->
header
.
size
+
sizeof
(
DWORD
)
*
2
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetRegionHRgn
(
GpRegion
*
region
,
GpGraphics
*
graphics
,
HRGN
*
hrgn
)
...
...
dlls/gdiplus/tests/region.c
View file @
430ce86a
...
...
@@ -67,14 +67,17 @@ static void test_getregiondata(void)
status
=
GdipCreateRegion
(
&
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
todo_wine
{
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
);
todo_wine
{
expect_dword
(
buf
,
12
);
trace
(
"buf[1] = %08x
\n
"
,
buf
[
1
]);
expect_magic
((
DWORD
*
)(
buf
+
2
));
...
...
@@ -87,11 +90,15 @@ todo_wine
todo_wine
{
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
}
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
sizeof
(
buf
),
&
needed
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
todo_wine
{
expect_dword
(
buf
,
12
);
trace
(
"buf[1] = %08x
\n
"
,
buf
[
1
]);
expect_magic
((
DWORD
*
)(
buf
+
2
));
...
...
@@ -102,13 +109,14 @@ todo_wine
status
=
GdipSetInfinite
(
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
todo_wine
{
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
sizeof
(
buf
),
&
needed
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
expect
(
20
,
needed
);
todo_wine
{
expect_dword
(
buf
,
12
);
trace
(
"buf[1] = %08x
\n
"
,
buf
[
1
]);
expect_magic
((
DWORD
*
)(
buf
+
2
));
...
...
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