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
d8669f9e
Commit
d8669f9e
authored
Jun 23, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Use color_match ((logical || with non-zero constant).
parent
bc871643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
visual.c
dlls/d3d9/tests/visual.c
+6
-6
No files found.
dlls/d3d9/tests/visual.c
View file @
d8669f9e
...
...
@@ -3265,13 +3265,13 @@ static void texture_transform_flags_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Present failed with %08x
\n
"
,
hr
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x00FFFF00
||
color
==
0x00FEFE00
,
"quad 1 has color %08x, expected 0x00FFFF00
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00FFFF00
,
1
)
,
"quad 1 has color %08x, expected 0x00FFFF00
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x00000000
,
"quad 2 has color %08x, expected 0x0000000
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"quad 3 has color %08x, expected 0x0000FF00
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x0000FF00
,
1
)
,
"quad 3 has color %08x, expected 0x0000FF00
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
360
);
ok
(
color
==
0x00FF0000
||
0x00FE0000
,
"quad 4 has color %08x, expected 0x00FF0000
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00FF0000
,
1
)
,
"quad 4 has color %08x, expected 0x00FF0000
\n
"
,
color
);
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xff0000ff
,
0
.
0
,
0
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Clear returned %08x
\n
"
,
hr
);
...
...
@@ -3352,14 +3352,14 @@ static void texture_transform_flags_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Present failed with %08x
\n
"
,
hr
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x00FF0000
||
color
==
0x00FE0000
,
"quad 1 has color %08x, expected 0x00FF0000
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00FF0000
,
1
)
,
"quad 1 has color %08x, expected 0x00FF0000
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x00000000
,
"quad 2 has color %08x, expected 0x0000000
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
ok
(
color
==
0x00ff8000
||
color
==
0x00fe7f00
||
color
==
0x00000000
,
ok
(
color
_match
(
color
,
0x00ff8000
,
1
)
||
color
==
0x00000000
,
"quad 3 has color %08x, expected 0x00ff8000
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
360
);
ok
(
color
==
0x0033cc00
||
color
==
0x0032cb00
||
color
==
0x00FF0000
||
color
==
0x00FE0000
,
ok
(
color
_match
(
color
,
0x0033cc00
,
1
)
||
color_match
(
color
,
0x00FF0000
,
1
)
,
"quad 4 has color %08x, expected 0x0033cc00
\n
"
,
color
);
IDirect3DTexture9_Release
(
texture
);
...
...
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