d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHScale().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
af7125e56b
commit
e56adf9884
|
@ -3586,7 +3586,7 @@ static void test_D3DXSHScale(void)
|
||||||
unsigned int i, order;
|
unsigned int i, order;
|
||||||
BOOL equal;
|
BOOL equal;
|
||||||
|
|
||||||
for (i = 0; i < 49; i++)
|
for (i = 0; i < ARRAY_SIZE(a); ++i)
|
||||||
{
|
{
|
||||||
a[i] = i;
|
a[i] = i;
|
||||||
b[i] = i;
|
b[i] = i;
|
||||||
|
@ -3597,7 +3597,7 @@ static void test_D3DXSHScale(void)
|
||||||
received_array = D3DXSHScale(b, order, a, 5.0f);
|
received_array = D3DXSHScale(b, order, a, 5.0f);
|
||||||
ok(received_array == b, "Expected %p, received %p\n", b, received_array);
|
ok(received_array == b, "Expected %p, received %p\n", b, received_array);
|
||||||
|
|
||||||
for (i = 0; i < 49; i++)
|
for (i = 0; i < ARRAY_SIZE(b); ++i)
|
||||||
{
|
{
|
||||||
if (i < order * order)
|
if (i < order * order)
|
||||||
expected = 5.0f * a[i];
|
expected = 5.0f * a[i];
|
||||||
|
|
Loading…
Reference in New Issue