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
99e5e3ac
Commit
99e5e3ac
authored
Jan 04, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Refuse to set a clip list if a clipper is already tracking a window.
parent
39974575
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
clipper.c
dlls/ddraw/clipper.c
+5
-0
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+1
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+1
-1
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+1
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+1
-1
No files found.
dlls/ddraw/clipper.c
View file @
99e5e3ac
...
...
@@ -180,8 +180,13 @@ static HRESULT WINAPI ddraw_clipper_GetClipList(IDirectDrawClipper *iface, RECT
*****************************************************************************/
static
HRESULT
WINAPI
ddraw_clipper_SetClipList
(
IDirectDrawClipper
*
iface
,
RGNDATA
*
region
,
DWORD
flags
)
{
struct
ddraw_clipper
*
clipper
=
impl_from_IDirectDrawClipper
(
iface
);
FIXME
(
"iface %p, region %p, flags %#x stub!
\n
"
,
iface
,
region
,
flags
);
if
(
clipper
->
window
)
return
DDERR_CLIPPERISUSINGHWND
;
return
DD_OK
;
}
...
...
dlls/ddraw/tests/ddraw1.c
View file @
99e5e3ac
...
...
@@ -248,7 +248,7 @@ static void test_clipper_blt(void)
DeleteObject
(
r1
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
todo_wine
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetHWnd
(
clipper
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set clipper window, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
99e5e3ac
...
...
@@ -255,7 +255,7 @@ static void test_clipper_blt(void)
DeleteObject
(
r1
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
todo_wine
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetHWnd
(
clipper
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set clipper window, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
99e5e3ac
...
...
@@ -550,7 +550,7 @@ static void test_clipper_blt(void)
DeleteObject
(
r1
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
todo_wine
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetHWnd
(
clipper
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set clipper window, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
99e5e3ac
...
...
@@ -543,7 +543,7 @@ static void test_clipper_blt(void)
DeleteObject
(
r1
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
todo_wine
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_CLIPPERISUSINGHWND
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetHWnd
(
clipper
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set clipper window, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawClipper_SetClipList
(
clipper
,
rgn_data
,
0
);
...
...
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