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:
parent
0933770741
commit
0183cd17be
|
@ -1046,11 +1046,7 @@ static HRESULT ddrawstreamsample_create(IDirectDrawMediaStream *parent, IDirectD
|
||||||
DDSURFACEDESC desc = { sizeof(desc) };
|
DDSURFACEDESC desc = { sizeof(desc) };
|
||||||
hr = IDirectDrawSurface_GetSurfaceDesc(object->surface, &desc);
|
hr = IDirectDrawSurface_GetSurfaceDesc(object->surface, &desc);
|
||||||
if (hr == S_OK)
|
if (hr == S_OK)
|
||||||
{
|
SetRect(&object->rect, 0, 0, desc.dwWidth, desc.dwHeight);
|
||||||
object->rect.left = object->rect.top = 0;
|
|
||||||
object->rect.right = desc.dwWidth;
|
|
||||||
object->rect.bottom = desc.dwHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*ddraw_stream_sample = &object->IDirectDrawStreamSample_iface;
|
*ddraw_stream_sample = &object->IDirectDrawStreamSample_iface;
|
||||||
|
|
Loading…
Reference in New Issue