amstream: Use SetRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-21 14:14:18 +02:00 committed by Alexandre Julliard
parent 0933770741
commit 0183cd17be
1 changed files with 1 additions and 5 deletions

View File

@ -1046,11 +1046,7 @@ static HRESULT ddrawstreamsample_create(IDirectDrawMediaStream *parent, IDirectD
DDSURFACEDESC desc = { sizeof(desc) };
hr = IDirectDrawSurface_GetSurfaceDesc(object->surface, &desc);
if (hr == S_OK)
{
object->rect.left = object->rect.top = 0;
object->rect.right = desc.dwWidth;
object->rect.bottom = desc.dwHeight;
}
SetRect(&object->rect, 0, 0, desc.dwWidth, desc.dwHeight);
}
*ddraw_stream_sample = &object->IDirectDrawStreamSample_iface;