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
7a4ed158
Commit
7a4ed158
authored
Mar 02, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Fix typos in text.
parent
24a10fc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
visual.c
dlls/d3d9/tests/visual.c
+7
-7
No files found.
dlls/d3d9/tests/visual.c
View file @
7a4ed158
...
...
@@ -8578,23 +8578,23 @@ static void pointsize_test(IDirect3DDevice9 *device)
/* ptsize = 16, ptsize_max = 1 --> point has size 1 */
color
=
getPixelColor
(
device
,
448
-
4
,
64
-
4
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (448-4),(64-4) has color 0x%08x, expected 0x00
ffff
ff
\n
"
,
color
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (448-4),(64-4) has color 0x%08x, expected 0x00
0000
ff
\n
"
,
color
);
color
=
getPixelColor
(
device
,
448
+
4
,
64
+
4
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (448+4),(64+4) has color 0x%08x, expected 0x00
ffff
ff
\n
"
,
color
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (448+4),(64+4) has color 0x%08x, expected 0x00
0000
ff
\n
"
,
color
);
/* ptsize = 4, ptsize_max = 1, ptsize_min = 16 --> point has size 1 */
color
=
getPixelColor
(
device
,
512
-
4
,
64
-
4
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (
448-4),(64-4) has color 0x%08x, expected 0x00ffff
ff
\n
"
,
color
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (
512-4),(64-4) has color 0x%08x, expected 0x000000
ff
\n
"
,
color
);
color
=
getPixelColor
(
device
,
512
+
4
,
64
+
4
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (
448+4),(64+4) has color 0x%08x, expected 0x00ffff
ff
\n
"
,
color
);
ok
(
color
==
0x000000ff
,
"pSize: Pixel (
512+4),(64+4) has color 0x%08x, expected 0x000000
ff
\n
"
,
color
);
/* ptsize = 1, ptsize_max = default(64), ptsize_min = 16 --> point has size 16
* Don't be overly picky - just show that the point is bigger than 1 pixel
*/
color
=
getPixelColor
(
device
,
576
-
4
,
64
-
4
);
ok
(
color
==
0x00ffffff
,
"pSize: Pixel (
448
-4),(64-4) has color 0x%08x, expected 0x00ffffff
\n
"
,
color
);
ok
(
color
==
0x00ffffff
,
"pSize: Pixel (
576
-4),(64-4) has color 0x%08x, expected 0x00ffffff
\n
"
,
color
);
color
=
getPixelColor
(
device
,
576
+
4
,
64
+
4
);
ok
(
color
==
0x00ffffff
,
"pSize: Pixel (
448
+4),(64+4) has color 0x%08x, expected 0x00ffffff
\n
"
,
color
);
ok
(
color
==
0x00ffffff
,
"pSize: Pixel (
576
+4),(64+4) has color 0x%08x, expected 0x00ffffff
\n
"
,
color
);
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_POINTSIZE
,
*
((
DWORD
*
)
(
&
ptsize_orig
)));
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState failed hr=%08x
\n
"
,
hr
);
...
...
@@ -8878,7 +8878,7 @@ static void pixelshader_blending_test(IDirect3DDevice9 *device)
b0
>=
max
(
b1
,
1
)
-
1
&&
b0
<=
b1
+
1
,
"Offscreen failed for %s: Got color %#08x, expected %#08x.
\n
"
,
test_formats
[
fmt_index
].
fmtName
,
color
,
test_formats
[
fmt_index
].
resultColorBlending
);
}
else
{
/* No pixel shader blending is supported so expect
ed garbage.
The type of 'garbage' depends on the driver version and OS.
/* No pixel shader blending is supported so expect
garbage.
The type of 'garbage' depends on the driver version and OS.
* E.g. on G16R16 ati reports (on old r9600 drivers) 0x00ffffff and on modern ones 0x002010ff which is also what Nvidia
* reports. On Vista Nvidia seems to report 0x00ffffff on Geforce7 cards. */
color
=
getPixelColor
(
device
,
320
,
240
);
...
...
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