ddraw: Use SetRectEmpty() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-03-03 09:26:06 +01:00 committed by Alexandre Julliard
parent 45743b4d9f
commit 3db08a49e1
2 changed files with 2 additions and 5 deletions

View File

@ -1436,7 +1436,7 @@ static HRESULT ddraw_surface_blt_clipped(struct ddraw_surface *dst_surface, cons
}
else
{
SetRect(&src_rect, 0, 0, 0, 0);
SetRectEmpty(&src_rect);
wined3d_src_texture = NULL;
src_sub_resource_idx = 0;
}

View File

@ -1832,10 +1832,7 @@ static void DeviceLoadTest(void)
/* First test some broken coordinates. */
loadpoint.x = loadpoint.y = 0;
loadrect.left = 0;
loadrect.top = 0;
loadrect.right = 0;
loadrect.bottom = 0;
SetRectEmpty(&loadrect);
hr = IDirect3DDevice7_Load(lpD3DDevice, texture_levels[1][0], &loadpoint, texture_levels[0][0], &loadrect, 0);
ok(hr==DDERR_INVALIDPARAMS, "IDirect3DDevice7_Load returned: %x\n",hr);