Commit 0183cd17 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 09337707
......@@ -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;
......
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