Michael Stefaniuc : quartz: Use wine_dbgstr_rect() to trace RECTs.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 19 10:55:57 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Apr 19 10:45:06 2016 +0200

quartz: Use wine_dbgstr_rect() to trace RECTs.

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

---

 dlls/quartz/videorenderer.c |  6 +++---
 dlls/quartz/vmr9.c          | 11 +++++------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index 3026c07..5cddaa7 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -184,7 +184,7 @@ static void VideoRenderer_AutoShowWindow(VideoRendererImpl *This)
 
         AdjustWindowRectEx(&This->WindowPos, style, FALSE, style_ex);
 
-        TRACE("WindowPos: %d %d %d %d\n", This->WindowPos.left, This->WindowPos.top, This->WindowPos.right, This->WindowPos.bottom);
+        TRACE("WindowPos: %s\n", wine_dbgstr_rect(&This->WindowPos));
         SetWindowPos(This->baseControlWindow.baseWindow.hWnd, NULL,
             This->WindowPos.left,
             This->WindowPos.top,
@@ -242,8 +242,8 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
         return E_FAIL;
     }
 
-    TRACE("Src Rect: %d %d %d %d\n", This->SourceRect.left, This->SourceRect.top, This->SourceRect.right, This->SourceRect.bottom);
-    TRACE("Dst Rect: %d %d %d %d\n", This->DestRect.left, This->DestRect.top, This->DestRect.right, This->DestRect.bottom);
+    TRACE("Src Rect: %s\n", wine_dbgstr_rect(&This->SourceRect));
+    TRACE("Dst Rect: %s\n", wine_dbgstr_rect(&This->DestRect));
 
     StretchDIBits(This->baseControlWindow.baseWindow.hDC, This->DestRect.left, This->DestRect.top, This->DestRect.right -This->DestRect.left,
                   This->DestRect.bottom - This->DestRect.top, This->SourceRect.left, This->SourceRect.top,
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 701d06d..f2c3d93 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -245,8 +245,8 @@ static DWORD VMR9_SendSampleData(struct quartz_vmr *This, VMR9PresentationInfo *
     width = bmiHeader->biWidth;
     height = bmiHeader->biHeight;
 
-    TRACE("Src Rect: %d %d %d %d\n", This->source_rect.left, This->source_rect.top, This->source_rect.right, This->source_rect.bottom);
-    TRACE("Dst Rect: %d %d %d %d\n", This->target_rect.left, This->target_rect.top, This->target_rect.right, This->target_rect.bottom);
+    TRACE("Src Rect: %s\n", wine_dbgstr_rect(&This->source_rect));
+    TRACE("Dst Rect: %s\n", wine_dbgstr_rect(&This->target_rect));
 
     hr = IDirect3DSurface9_LockRect(info->lpSurf, &lock, NULL, D3DLOCK_DISCARD);
     if (FAILED(hr))
@@ -1769,8 +1769,7 @@ static HRESULT WINAPI VMR7WindowlessControl_SetVideoPosition(IVMRWindowlessContr
         This->target_rect = *dest;
         if (This->baseControlWindow.baseWindow.hWnd)
         {
-            FIXME("Output rectangle: starting at %dx%d, up to point %dx%d\n",
-                  dest->left, dest->top, dest->right, dest->bottom);
+            FIXME("Output rectangle: %s\n", wine_dbgstr_rect(dest));
             SetWindowPos(This->baseControlWindow.baseWindow.hWnd, NULL,
                          dest->left, dest->top, dest->right - dest->left, dest->bottom-dest->top,
                          SWP_NOACTIVATE|SWP_NOCOPYBITS|SWP_NOOWNERZORDER|SWP_NOREDRAW);
@@ -1974,7 +1973,7 @@ static HRESULT WINAPI VMR9WindowlessControl_SetVideoPosition(IVMRWindowlessContr
         This->target_rect = *dest;
         if (This->baseControlWindow.baseWindow.hWnd)
         {
-            FIXME("Output rectangle: starting at %dx%d, up to point %dx%d\n", dest->left, dest->top, dest->right, dest->bottom);
+            FIXME("Output rectangle: %s\n", wine_dbgstr_rect(dest));
             SetWindowPos(This->baseControlWindow.baseWindow.hWnd, NULL, dest->left, dest->top, dest->right - dest->left,
                          dest->bottom-dest->top, SWP_NOACTIVATE|SWP_NOCOPYBITS|SWP_NOOWNERZORDER|SWP_NOREDRAW);
         }
@@ -2613,7 +2612,7 @@ static HRESULT WINAPI VMR9_ImagePresenter_PresentImage(IVMRImagePresenter9 *ifac
 
     TRACE("(%p/%p/%p)->(...) stub\n", iface, This, This->pVMR9);
     GetWindowRect(This->pVMR9->baseControlWindow.baseWindow.hWnd, &output);
-    TRACE("Output rectangle: starting at %dx%d, up to point %dx%d\n", output.left, output.top, output.right, output.bottom);
+    TRACE("Output rectangle: %s\n", wine_dbgstr_rect(&output));
 
     /* This might happen if we don't have active focus (eg on a different virtual desktop) */
     if (!This->d3d9_dev)




More information about the wine-cvs mailing list