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
f902b044
Commit
f902b044
authored
Jul 16, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use color_match() in vshader_version_varying_test().
Also fixes the range on the test, 0x19 plus 1 equals 0x1a, and 0x003c0000 should've been 0x004c0000.
parent
c72c70d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
visual.c
dlls/d3d9/tests/visual.c
+4
-10
No files found.
dlls/d3d9/tests/visual.c
View file @
f902b044
...
...
@@ -5473,19 +5473,13 @@ static void vshader_version_varying_test(IDirect3DDevice9 *device) {
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Present failed with %08x
\n
"
,
hr
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
((
color
&
0x00ff0000
)
>=
0x00190000
&&
(
color
&
0x00ff0000
)
<=
0x00210000
&&
(
color
&
0x0000ff00
)
>=
0x00003300
&&
(
color
&
0x0000ff00
)
<=
0x00003500
&&
(
color
&
0x000000ff
)
>=
0x00000066
&&
(
color
&
0x000000ff
)
<=
0x00000068
,
"vs_3_0 returned color 0x%08x, expected 0x00203366
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x1a
,
0x34
,
0x67
),
1
),
"vs_3_0 returned color 0x%08x, expected 0x00193366
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
((
color
&
0x00ff0000
)
>=
0x003c0000
&&
(
color
&
0x00ff0000
)
<=
0x004e0000
&&
(
color
&
0x0000ff00
)
>=
0x00000000
&&
(
color
&
0x0000ff00
)
<=
0x00000000
&&
(
color
&
0x000000ff
)
>=
0x00000066
&&
(
color
&
0x000000ff
)
<=
0x00000068
,
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x4d
,
0x00
,
0x67
),
1
),
"vs_1_1 returned color 0x%08x, expected 0x004c0066
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
360
);
ok
((
color
&
0x00ff0000
)
>=
0x003c0000
&&
(
color
&
0x00ff0000
)
<=
0x004e0000
&&
(
color
&
0x0000ff00
)
>=
0x00000000
&&
(
color
&
0x0000ff00
)
<=
0x00000000
&&
(
color
&
0x000000ff
)
>=
0x00000066
&&
(
color
&
0x000000ff
)
<=
0x00000068
,
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x4d
,
0x00
,
0x67
),
1
),
"vs_2_0 returned color 0x%08x, expected 0x004c0066
\n
"
,
color
);
/* cleanup */
...
...
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