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
60a36253
Commit
60a36253
authored
Apr 05, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Use color_match() in test_rcp_rsq().
parent
7d800032
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
visual.c
dlls/d3d8/tests/visual.c
+4
-13
No files found.
dlls/d3d8/tests/visual.c
View file @
60a36253
...
...
@@ -534,7 +534,6 @@ static void test_rcp_rsq(IDirect3DDevice8 *device)
HRESULT
hr
;
DWORD
shader
;
DWORD
color
;
unsigned
char
c1
,
c2
,
c3
;
float
constant
[
4
]
=
{
1
.
0
,
1
.
0
,
1
.
0
,
2
.
0
};
static
const
float
quad
[][
3
]
=
{
...
...
@@ -598,12 +597,8 @@ static void test_rcp_rsq(IDirect3DDevice8 *device)
}
color
=
getPixelColor
(
device
,
320
,
240
);
c1
=
(
color
&
0x00ff0000
)
>>
16
;
c2
=
(
color
&
0x0000ff00
)
>>
8
;
c3
=
(
color
&
0x000000ff
)
>>
0
;
ok
(
c1
==
c2
&&
c2
==
c3
,
"Color components differ: c1 = %02x, c2 = %02x, c3 = %02x
\n
"
,
c1
,
c2
,
c3
);
ok
(
c1
>=
0x7c
&&
c1
<=
0x84
,
"Color component value is %02x
\n
"
,
c1
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x80
,
0x80
,
0x80
),
4
),
"RCP test returned color 0x%08x, expected 0x00808080.
\n
"
,
color
);
hr
=
IDirect3DDevice8_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Present failed (%#08x)
\n
"
,
hr
);
...
...
@@ -632,12 +627,8 @@ static void test_rcp_rsq(IDirect3DDevice8 *device)
}
color
=
getPixelColor
(
device
,
320
,
240
);
c1
=
(
color
&
0x00ff0000
)
>>
16
;
c2
=
(
color
&
0x0000ff00
)
>>
8
;
c3
=
(
color
&
0x000000ff
)
>>
0
;
ok
(
c1
==
c2
&&
c2
==
c3
,
"Color components differ: c1 = %02x, c2 = %02x, c3 = %02x
\n
"
,
c1
,
c2
,
c3
);
ok
(
c1
>=
0xb0
&&
c1
<=
0xb8
,
"Color component value is %02x
\n
"
,
c1
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0xb4
,
0xb4
,
0xb4
),
4
),
"RSQ test returned color 0x%08x, expected 0x00b4b4b4.
\n
"
,
color
);
hr
=
IDirect3DDevice8_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Present failed (%#08x)
\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