mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 14:43:38 +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
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue