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
74d62bcc
Commit
74d62bcc
authored
Nov 24, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetRegionHRgn for infinite regions.
parent
5c752777
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
region.c
dlls/gdiplus/region.c
+16
-3
region.c
dlls/gdiplus/tests/region.c
+4
-4
No files found.
dlls/gdiplus/region.c
View file @
74d62bcc
...
...
@@ -768,18 +768,31 @@ GpStatus WINGDIPAPI GdipGetRegionDataSize(GpRegion *region, UINT *needed)
return
Ok
;
}
static
GpStatus
get_region_hrgn
(
struct
region_element
*
element
,
GpGraphics
*
graphics
,
HRGN
*
hrgn
)
{
switch
(
element
->
type
)
{
case
RegionDataInfiniteRect
:
*
hrgn
=
NULL
;
return
Ok
;
default:
FIXME
(
"GdipGetRegionHRgn unimplemented for region type=%x
\n
"
,
element
->
type
);
*
hrgn
=
NULL
;
return
NotImplemented
;
}
}
/*****************************************************************************
* GdipGetRegionHRgn [GDIPLUS.@]
*/
GpStatus
WINGDIPAPI
GdipGetRegionHRgn
(
GpRegion
*
region
,
GpGraphics
*
graphics
,
HRGN
*
hrgn
)
{
FIXME
(
"(%p, %p, %p): stub
\n
"
,
region
,
graphics
,
hrgn
);
TRACE
(
"(%p, %p, %p)
\n
"
,
region
,
graphics
,
hrgn
);
if
(
!
region
||
!
hrgn
)
return
InvalidParameter
;
*
hrgn
=
NULL
;
return
NotImplemented
;
return
get_region_hrgn
(
&
region
->
node
,
graphics
,
hrgn
);
}
GpStatus
WINGDIPAPI
GdipIsEmptyRegion
(
GpRegion
*
region
,
GpGraphics
*
graphics
,
BOOL
*
res
)
...
...
dlls/gdiplus/tests/region.c
View file @
74d62bcc
...
...
@@ -762,14 +762,14 @@ static void test_gethrgn(void)
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
NULL
);
ok
(
status
==
InvalidParameter
,
"status %08x
\n
"
,
status
);
hrgn
=
NULL
;
status
=
GdipGetRegionHRgn
(
region
,
NULL
,
&
hrgn
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ok
(
hrgn
==
NULL
,
"hrgn=%p
\n
"
,
hrgn
);
DeleteObject
(
hrgn
);
hrgn
=
NULL
;
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
&
hrgn
);
todo_wine
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ok
(
hrgn
==
NULL
,
"hrgn=%p
\n
"
,
hrgn
);
DeleteObject
(
hrgn
);
status
=
GdipDeleteRegion
(
region
);
...
...
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