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
5d17f9bc
Commit
5d17f9bc
authored
Nov 06, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix some COM macro versions in test_coop_level_mode_set.
parent
c436a525
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+3
-3
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+10
-10
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+3
-3
No files found.
dlls/ddraw/tests/ddraw2.c
View file @
5d17f9bc
...
...
@@ -2424,7 +2424,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
2
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2682,7 +2682,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
2
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2786,7 +2786,7 @@ static void test_coop_level_mode_set(void)
s
.
bottom
-
s
.
top
,
ddsd
.
dwHeight
);
IDirectDrawSurface_Release
(
primary
);
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
2
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
/* If the window is changed at the same time, messages are sent to the new window. */
...
...
dlls/ddraw/tests/ddraw4.c
View file @
5d17f9bc
...
...
@@ -2611,7 +2611,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
4
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2736,7 +2736,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
4
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2862,7 +2862,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
4
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2934,13 +2934,13 @@ static void test_coop_level_mode_set(void)
hr
=
IDirectDraw4_CreateSurface
(
ddraw
,
&
ddsd
,
&
primary
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_GetSurfaceDesc
(
primary
,
&
ddsd
);
hr
=
IDirectDrawSurface
4
_GetSurfaceDesc
(
primary
,
&
ddsd
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface desc, hr %#x.
\n
"
,
hr
);
ok
(
ddsd
.
dwWidth
==
fullscreen_rect
.
right
-
fullscreen_rect
.
left
,
"Expected surface width %u, got %u.
\n
"
,
fullscreen_rect
.
right
-
fullscreen_rect
.
left
,
ddsd
.
dwWidth
);
ok
(
ddsd
.
dwHeight
==
fullscreen_rect
.
bottom
-
fullscreen_rect
.
top
,
"Expected surface height %u, got %u.
\n
"
,
fullscreen_rect
.
bottom
-
fullscreen_rect
.
top
,
ddsd
.
dwHeight
);
IDirectDrawSurface_Release
(
primary
);
IDirectDrawSurface
4
_Release
(
primary
);
/* The screen restore is a property of DDSCL_EXCLUSIVE */
hr
=
IDirectDraw4_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_NORMAL
|
DDSCL_FULLSCREEN
);
...
...
@@ -2958,15 +2958,15 @@ static void test_coop_level_mode_set(void)
hr
=
IDirectDraw4_CreateSurface
(
ddraw
,
&
ddsd
,
&
primary
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_GetSurfaceDesc
(
primary
,
&
ddsd
);
hr
=
IDirectDrawSurface
4
_GetSurfaceDesc
(
primary
,
&
ddsd
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface desc, hr %#x.
\n
"
,
hr
);
ok
(
ddsd
.
dwWidth
==
s
.
right
-
s
.
left
,
"Expected surface width %u, got %u.
\n
"
,
s
.
right
-
s
.
left
,
ddsd
.
dwWidth
);
ok
(
ddsd
.
dwHeight
==
s
.
bottom
-
s
.
top
,
"Expected surface height %u, got %u.
\n
"
,
s
.
bottom
-
s
.
top
,
ddsd
.
dwHeight
);
IDirectDrawSurface_Release
(
primary
);
IDirectDrawSurface
4
_Release
(
primary
);
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
4
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
/* If the window is changed at the same time, messages are sent to the new window. */
...
...
@@ -3009,13 +3009,13 @@ static void test_coop_level_mode_set(void)
hr
=
IDirectDraw4_CreateSurface
(
ddraw
,
&
ddsd
,
&
primary
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDrawSurface_GetSurfaceDesc
(
primary
,
&
ddsd
);
hr
=
IDirectDrawSurface
4
_GetSurfaceDesc
(
primary
,
&
ddsd
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get surface desc, hr %#x.
\n
"
,
hr
);
ok
(
ddsd
.
dwWidth
==
fullscreen_rect
.
right
-
fullscreen_rect
.
left
,
"Expected surface width %u, got %u.
\n
"
,
fullscreen_rect
.
right
-
fullscreen_rect
.
left
,
ddsd
.
dwWidth
);
ok
(
ddsd
.
dwHeight
==
fullscreen_rect
.
bottom
-
fullscreen_rect
.
top
,
"Expected surface height %u, got %u.
\n
"
,
fullscreen_rect
.
bottom
-
fullscreen_rect
.
top
,
ddsd
.
dwHeight
);
IDirectDrawSurface_Release
(
primary
);
IDirectDrawSurface
4
_Release
(
primary
);
ref
=
IDirectDraw4_Release
(
ddraw
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
5d17f9bc
...
...
@@ -2288,7 +2288,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
7
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2539,7 +2539,7 @@ static void test_coop_level_mode_set(void)
screen_size
.
cx
=
0
;
screen_size
.
cy
=
0
;
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
7
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
ok
(
!*
expect_messages
,
"Expected message %#x, but didn't receive it.
\n
"
,
*
expect_messages
);
...
...
@@ -2643,7 +2643,7 @@ static void test_coop_level_mode_set(void)
s
.
bottom
-
s
.
top
,
ddsd
.
dwHeight
);
IDirectDrawSurface7_Release
(
primary
);
hr
=
IDirectDraw_RestoreDisplayMode
(
ddraw
);
hr
=
IDirectDraw
7
_RestoreDisplayMode
(
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"RestoreDisplayMode failed, hr %#x.
\n
"
,
hr
);
/* If the window is changed at the same time, messages are sent to the new window. */
...
...
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