wineps.drv: Use wine_dbgstr_rect() to trace RECTs.
Michael Stefaniuc
mstefani at redhat.de
Tue Apr 26 13:48:16 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
Found in my queue of unfinished patches while troubleshooting why
coccinelle produces different results on my desktop compared to the
laptop. Part of it is 2012 vintage...
dlls/wineps.drv/escape.c | 5 ++---
dlls/wineps.drv/init.c | 4 +---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/wineps.drv/escape.c b/dlls/wineps.drv/escape.c
index 6e89837..00a4a6c 100644
--- a/dlls/wineps.drv/escape.c
+++ b/dlls/wineps.drv/escape.c
@@ -149,7 +149,7 @@ INT PSDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
r->top = 0;
r->right = physDev->horzRes;
r->bottom = physDev->vertRes;
- TRACE("NEXTBAND returning %d,%d - %d,%d\n", r->left, r->top, r->right, r->bottom );
+ TRACE("NEXTBAND returning %s\n", wine_dbgstr_rect(r));
return 1;
}
r->left = 0;
@@ -252,8 +252,7 @@ INT PSDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
WARN("cbInput != sizeof(RECT) (=%d) for SET_BOUNDS\n", cbInput);
return 0;
}
- TRACE("SET_BOUNDS (%d,%d) - (%d,%d)\n", r->left, r->top,
- r->right, r->bottom);
+ TRACE("SET_BOUNDS %s\n", wine_dbgstr_rect(r));
return 0;
}
diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c
index 2cdb071..e4e17b0 100644
--- a/dlls/wineps.drv/init.c
+++ b/dlls/wineps.drv/init.c
@@ -331,9 +331,7 @@ static void PSDRV_UpdateDevCaps( PSDRV_PDEVICE *physDev )
physDev->PageSize.cy = 0;
}
- TRACE("ImageableArea = %d,%d - %d,%d: PageSize = %dx%d\n",
- physDev->ImageableArea.left, physDev->ImageableArea.bottom,
- physDev->ImageableArea.right, physDev->ImageableArea.top,
+ TRACE("ImageableArea = %s: PageSize = %dx%d\n", wine_dbgstr_rect(&physDev->ImageableArea),
physDev->PageSize.cx, physDev->PageSize.cy);
/* these are in device units */
--
2.4.11
More information about the wine-patches
mailing list