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

Alexandre Julliard julliard at winehq.org
Tue Jun 21 11:13:49 CDT 2016


Module: wine
Branch: master
Commit: 0183cd17be37620b0db065e4733b9a2d5cfa4b69
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0183cd17be37620b0db065e4733b9a2d5cfa4b69

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jun 21 14:14:18 2016 +0200

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

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/amstream/mediastream.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/amstream/mediastream.c b/dlls/amstream/mediastream.c
index 0ba9eb8..188ab88 100644
--- a/dlls/amstream/mediastream.c
+++ b/dlls/amstream/mediastream.c
@@ -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;




More information about the wine-cvs mailing list