Commit 831801dd authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Remove rectangle validation from ddraw_surface7_BltFast().

This is already done by wined3d_surface_blt().
parent a8427507
......@@ -3622,14 +3622,6 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d
*/
if(rsrc)
{
if(rsrc->top > rsrc->bottom || rsrc->left > rsrc->right ||
rsrc->right > src->surface_desc.dwWidth ||
rsrc->bottom > src->surface_desc.dwHeight)
{
WARN("Source rectangle is invalid, returning DDERR_INVALIDRECT\n");
return DDERR_INVALIDRECT;
}
src_w = rsrc->right - rsrc->left;
src_h = rsrc->bottom - rsrc->top;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment