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
fb49ae52
Commit
fb49ae52
authored
Jul 18, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm/tests: Show that viewport::render does not clear the background.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
parent
17b212a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
d3drm.c
dlls/d3drm/tests/d3drm.c
+21
-0
No files found.
dlls/d3drm/tests/d3drm.c
View file @
fb49ae52
...
@@ -7122,6 +7122,15 @@ static void test_viewport_clear1(void)
...
@@ -7122,6 +7122,15 @@ static void test_viewport_clear1(void)
ok
(
compare_color
(
ret_color
,
0x00ffffff
,
1
),
"Got unexpected color 0x%08lx.
\n
"
,
ret_color
);
ok
(
compare_color
(
ret_color
,
0x00ffffff
,
1
),
"Got unexpected color 0x%08lx.
\n
"
,
ret_color
);
CHECK_REFCOUNT
(
frame1
,
1
);
CHECK_REFCOUNT
(
frame1
,
1
);
hr
=
IDirect3DRMFrame_SetSceneBackgroundRGB
(
frame1
,
0
.
5
f
,
0
.
5
f
,
0
.
5
f
);
ok
(
SUCCEEDED
(
hr
),
"Cannot set scene background RGB, hr %#lx
\n
"
,
hr
);
hr
=
IDirect3DRMViewport_Render
(
viewport1
,
frame1
);
ok
(
SUCCEEDED
(
hr
),
"Cannot Render, hr %#lx
\n
"
,
hr
);
ret_color
=
get_surface_color
(
surface
,
320
,
240
);
ok
(
compare_color
(
ret_color
,
0x00ffffff
,
1
),
"Got unexpected color 0x%08lx.
\n
"
,
ret_color
);
hr
=
IDirect3DRMFrame_SetSceneBackgroundRGB
(
frame1
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
);
hr
=
IDirect3DRMFrame_SetSceneBackgroundRGB
(
frame1
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
);
ok
(
SUCCEEDED
(
hr
),
"Cannot set scene background RGB, hr %#lx
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Cannot set scene background RGB, hr %#lx
\n
"
,
hr
);
ret_color
=
IDirect3DRMFrame_GetSceneBackground
(
frame1
);
ret_color
=
IDirect3DRMFrame_GetSceneBackground
(
frame1
);
...
@@ -7327,6 +7336,18 @@ static void test_viewport_clear2(void)
...
@@ -7327,6 +7336,18 @@ static void test_viewport_clear2(void)
ok
(
compare_color
(
ret_color
,
0x00ffffff
,
1
),
"Got unexpected color 0x%08lx.
\n
"
,
ret_color
);
ok
(
compare_color
(
ret_color
,
0x00ffffff
,
1
),
"Got unexpected color 0x%08lx.
\n
"
,
ret_color
);
CHECK_REFCOUNT
(
frame3
,
1
);
CHECK_REFCOUNT
(
frame3
,
1
);
hr
=
IDirect3DRMFrame3_SetSceneBackgroundRGB
(
frame3
,
0
.
5
f
,
0
.
5
f
,
0
.
5
f
);
ok
(
SUCCEEDED
(
hr
),
"Cannot set scene background RGB, hr %#lx
\n
"
,
hr
);
hr
=
IDirect3DRMViewport2_Render
(
viewport2
,
frame3
);
ok
(
SUCCEEDED
(
hr
),
"Cannot Render, hr %#lx
\n
"
,
hr
);
ret_color
=
get_surface_color
(
surface
,
320
,
240
);
ok
(
compare_color
(
ret_color
,
0x00ffffff
,
1
),
"Got unexpected color 0x%08lx.
\n
"
,
ret_color
);
hr
=
IDirect3DRMFrame3_SetSceneBackgroundRGB
(
frame3
,
1
.
0
f
,
1
.
0
f
,
1
.
0
f
);
ok
(
SUCCEEDED
(
hr
),
"Cannot set scene background RGB, hr %#lx
\n
"
,
hr
);
hr
=
IDirect3DRMViewport2_GetDirect3DViewport
(
viewport2
,
&
d3d_viewport
);
hr
=
IDirect3DRMViewport2_GetDirect3DViewport
(
viewport2
,
&
d3d_viewport
);
ok
(
SUCCEEDED
(
hr
),
"Cannot get IDirect3DViewport interface, hr %#lx.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Cannot get IDirect3DViewport interface, hr %#lx.
\n
"
,
hr
);
...
...
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