mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
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:
parent
45743b4d9f
commit
3db08a49e1
2 changed files with 2 additions and 5 deletions
|
@ -1436,7 +1436,7 @@ static HRESULT ddraw_surface_blt_clipped(struct ddraw_surface *dst_surface, cons
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetRect(&src_rect, 0, 0, 0, 0);
|
SetRectEmpty(&src_rect);
|
||||||
wined3d_src_texture = NULL;
|
wined3d_src_texture = NULL;
|
||||||
src_sub_resource_idx = 0;
|
src_sub_resource_idx = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1832,10 +1832,7 @@ static void DeviceLoadTest(void)
|
||||||
|
|
||||||
/* First test some broken coordinates. */
|
/* First test some broken coordinates. */
|
||||||
loadpoint.x = loadpoint.y = 0;
|
loadpoint.x = loadpoint.y = 0;
|
||||||
loadrect.left = 0;
|
SetRectEmpty(&loadrect);
|
||||||
loadrect.top = 0;
|
|
||||||
loadrect.right = 0;
|
|
||||||
loadrect.bottom = 0;
|
|
||||||
hr = IDirect3DDevice7_Load(lpD3DDevice, texture_levels[1][0], &loadpoint, texture_levels[0][0], &loadrect, 0);
|
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);
|
ok(hr==DDERR_INVALIDPARAMS, "IDirect3DDevice7_Load returned: %x\n",hr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue