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
9e2e594a
Commit
9e2e594a
authored
Aug 24, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement IDirectDrawClipper_GetClipList for case where we have a
handle to a window.
parent
8680ce1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
main.c
dlls/ddraw/dclipper/main.c
+35
-7
No files found.
dlls/ddraw/dclipper/main.c
View file @
9e2e594a
...
...
@@ -143,14 +143,42 @@ ULONG WINAPI Main_DirectDrawClipper_Release(LPDIRECTDRAWCLIPPER iface) {
*/
HRESULT
WINAPI
Main_DirectDrawClipper_GetClipList
(
LPDIRECTDRAWCLIPPER
iface
,
LPRECT
lpRect
,
LPRGNDATA
lpClipList
,
LPDWORD
lpdwSize
)
{
LPDWORD
lpdwSize
)
{
ICOM_THIS
(
IDirectDrawClipperImpl
,
iface
);
static
int
warned
=
0
;
if
(
warned
++
<
10
)
FIXME
(
"(%p,%p,%p,%p),stub!
\n
"
,
This
,
lpRect
,
lpClipList
,
lpdwSize
);
if
(
lpdwSize
)
*
lpdwSize
=
0
;
return
DDERR_NOCLIPLIST
;
TRACE
(
"(%p,%p,%p,%p)
\n
"
,
This
,
lpRect
,
lpClipList
,
lpdwSize
);
if
(
This
->
hWnd
)
{
HDC
hDC
=
GetDCEx
(
This
->
hWnd
,
NULL
,
DCX_WINDOW
);
if
(
hDC
)
{
HRGN
hRgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
if
(
GetRandomRgn
(
hDC
,
hRgn
,
SYSRGN
))
{
if
(
lpRect
)
{
HRGN
hRgnClip
=
CreateRectRgn
(
lpRect
->
left
,
lpRect
->
top
,
lpRect
->
right
,
lpRect
->
bottom
);
CombineRgn
(
hRgn
,
hRgn
,
hRgnClip
,
RGN_AND
);
DeleteObject
(
hRgnClip
);
}
*
lpdwSize
=
GetRegionData
(
hRgn
,
*
lpdwSize
,
lpClipList
);
}
DeleteObject
(
hRgn
);
ReleaseDC
(
This
->
hWnd
,
hDC
);
}
return
DD_OK
;
}
else
{
static
int
warned
=
0
;
if
(
warned
++
<
10
)
FIXME
(
"(%p,%p,%p,%p),stub!
\n
"
,
This
,
lpRect
,
lpClipList
,
lpdwSize
);
if
(
lpdwSize
)
*
lpdwSize
=
0
;
return
DDERR_NOCLIPLIST
;
}
}
/***********************************************************************
...
...
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