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
daf3e8a0
Commit
daf3e8a0
authored
Mar 20, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: The testbot applies color keying without a key.
parent
02be2e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+14
-4
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
daf3e8a0
...
@@ -6211,14 +6211,24 @@ static void test_texturemapblend(void)
...
@@ -6211,14 +6211,24 @@ static void test_texturemapblend(void)
hr
=
IDirect3DDevice_EndScene
(
device
);
hr
=
IDirect3DDevice_EndScene
(
device
);
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
/* WARP (Win8 testbot) emulates color keying with the alpha channel like Wine does,
* but even applies it when there's no color key assigned. The surface alpha is zero
* here, so nothing gets drawn.
*
* The ddraw2 version of this test draws these quads with color keying off due to
* different defaults in ddraw1 and ddraw2. */
color
=
get_surface_color
(
rt
,
5
,
5
);
color
=
get_surface_color
(
rt
,
5
,
5
);
ok
(
compare_color
(
color
,
0x00ff0040
,
2
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
ok
(
compare_color
(
color
,
0x00ff0040
,
2
)
||
broken
(
compare_color
(
color
,
0x00000000
,
1
)),
"Got unexpected color 0x%08x.
\n
"
,
color
);
color
=
get_surface_color
(
rt
,
400
,
5
);
color
=
get_surface_color
(
rt
,
400
,
5
);
ok
(
compare_color
(
color
,
0x00ff0080
,
2
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
ok
(
compare_color
(
color
,
0x00ff0080
,
2
)
||
broken
(
compare_color
(
color
,
0x00000000
,
1
)),
"Got unexpected color 0x%08x.
\n
"
,
color
);
color
=
get_surface_color
(
rt
,
5
,
245
);
color
=
get_surface_color
(
rt
,
5
,
245
);
ok
(
compare_color
(
color
,
0x00800080
,
2
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
ok
(
compare_color
(
color
,
0x00800080
,
2
)
||
broken
(
compare_color
(
color
,
0x00000000
,
1
)),
"Got unexpected color 0x%08x.
\n
"
,
color
);
color
=
get_surface_color
(
rt
,
400
,
245
);
color
=
get_surface_color
(
rt
,
400
,
245
);
ok
(
compare_color
(
color
,
0x008000ff
,
2
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
ok
(
compare_color
(
color
,
0x008000ff
,
2
)
||
broken
(
compare_color
(
color
,
0x00000000
,
1
)),
"Got unexpected color 0x%08x.
\n
"
,
color
);
IDirect3DTexture_Release
(
texture
);
IDirect3DTexture_Release
(
texture
);
ref
=
IDirectDrawSurface_Release
(
surface
);
ref
=
IDirectDrawSurface_Release
(
surface
);
...
...
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