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
8ab2ed64
Commit
8ab2ed64
authored
Sep 17, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix clip region tests for older ddraw too.
parent
06d5c487
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
+4
-18
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+2
-9
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+2
-9
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
8ab2ed64
...
...
@@ -536,7 +536,7 @@ static void test_coop_level_create_device_window(void)
static
void
test_clipper_blt
(
void
)
{
IDirectDrawSurface
*
src_surface
,
*
dst_surface
;
RECT
client_rect
,
src_rect
,
*
rect
;
RECT
client_rect
,
src_rect
;
IDirectDrawClipper
*
clipper
;
DDSURFACEDESC
surface_desc
;
unsigned
int
i
,
j
,
x
,
y
;
...
...
@@ -602,19 +602,12 @@ static void test_clipper_blt(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to get clip list, hr %#x.
\n
"
,
hr
);
ok
(
rgn_data
->
rdh
.
dwSize
==
sizeof
(
rgn_data
->
rdh
),
"Got unexpected structure size %#x.
\n
"
,
rgn_data
->
rdh
.
dwSize
);
ok
(
rgn_data
->
rdh
.
iType
==
RDH_RECTANGLES
,
"Got unexpected type %#x.
\n
"
,
rgn_data
->
rdh
.
iType
);
ok
(
rgn_data
->
rdh
.
nCount
==
1
,
"Got unexpected count %u.
\n
"
,
rgn_data
->
rdh
.
nCount
);
ok
(
rgn_data
->
rdh
.
nRgnSize
==
16
||
broken
(
rgn_data
->
rdh
.
nRgnSize
==
168
/* NT4 */
),
"Got unexpected region size %u.
\n
"
,
rgn_data
->
rdh
.
nRgnSize
);
ok
(
rgn_data
->
rdh
.
nCount
>=
1
,
"Got unexpected count %u.
\n
"
,
rgn_data
->
rdh
.
nCount
);
ok
(
EqualRect
(
&
rgn_data
->
rdh
.
rcBound
,
&
client_rect
),
"Got unexpected bounding rect {%d, %d, %d, %d}, expected {%d, %d, %d, %d}.
\n
"
,
rgn_data
->
rdh
.
rcBound
.
left
,
rgn_data
->
rdh
.
rcBound
.
top
,
rgn_data
->
rdh
.
rcBound
.
right
,
rgn_data
->
rdh
.
rcBound
.
bottom
,
client_rect
.
left
,
client_rect
.
top
,
client_rect
.
right
,
client_rect
.
bottom
);
rect
=
(
RECT
*
)
&
rgn_data
->
Buffer
[
0
];
ok
(
EqualRect
(
rect
,
&
client_rect
),
"Got unexpected clip rect {%d, %d, %d, %d}, expected {%d, %d, %d, %d}.
\n
"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
,
client_rect
.
left
,
client_rect
.
top
,
client_rect
.
right
,
client_rect
.
bottom
);
HeapFree
(
GetProcessHeap
(),
0
,
rgn_data
);
r1
=
CreateRectRgn
(
0
,
0
,
320
,
240
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
8ab2ed64
...
...
@@ -478,7 +478,7 @@ static void test_coop_level_create_device_window(void)
static
void
test_clipper_blt
(
void
)
{
IDirectDrawSurface
*
src_surface
,
*
dst_surface
;
RECT
client_rect
,
src_rect
,
*
rect
;
RECT
client_rect
,
src_rect
;
IDirectDrawClipper
*
clipper
;
DDSURFACEDESC
surface_desc
;
unsigned
int
i
,
j
,
x
,
y
;
...
...
@@ -544,19 +544,12 @@ static void test_clipper_blt(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to get clip list, hr %#x.
\n
"
,
hr
);
ok
(
rgn_data
->
rdh
.
dwSize
==
sizeof
(
rgn_data
->
rdh
),
"Got unexpected structure size %#x.
\n
"
,
rgn_data
->
rdh
.
dwSize
);
ok
(
rgn_data
->
rdh
.
iType
==
RDH_RECTANGLES
,
"Got unexpected type %#x.
\n
"
,
rgn_data
->
rdh
.
iType
);
ok
(
rgn_data
->
rdh
.
nCount
==
1
,
"Got unexpected count %u.
\n
"
,
rgn_data
->
rdh
.
nCount
);
ok
(
rgn_data
->
rdh
.
nRgnSize
==
16
||
broken
(
rgn_data
->
rdh
.
nRgnSize
==
168
/* NT4 */
),
"Got unexpected region size %u.
\n
"
,
rgn_data
->
rdh
.
nRgnSize
);
ok
(
rgn_data
->
rdh
.
nCount
>=
1
,
"Got unexpected count %u.
\n
"
,
rgn_data
->
rdh
.
nCount
);
ok
(
EqualRect
(
&
rgn_data
->
rdh
.
rcBound
,
&
client_rect
),
"Got unexpected bounding rect {%d, %d, %d, %d}, expected {%d, %d, %d, %d}.
\n
"
,
rgn_data
->
rdh
.
rcBound
.
left
,
rgn_data
->
rdh
.
rcBound
.
top
,
rgn_data
->
rdh
.
rcBound
.
right
,
rgn_data
->
rdh
.
rcBound
.
bottom
,
client_rect
.
left
,
client_rect
.
top
,
client_rect
.
right
,
client_rect
.
bottom
);
rect
=
(
RECT
*
)
&
rgn_data
->
Buffer
[
0
];
ok
(
EqualRect
(
rect
,
&
client_rect
),
"Got unexpected clip rect {%d, %d, %d, %d}, expected {%d, %d, %d, %d}.
\n
"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
,
client_rect
.
left
,
client_rect
.
top
,
client_rect
.
right
,
client_rect
.
bottom
);
HeapFree
(
GetProcessHeap
(),
0
,
rgn_data
);
r1
=
CreateRectRgn
(
0
,
0
,
320
,
240
);
...
...
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