Vincent Povirk : gdiplus: Add a trace to GdipDrawString.

Alexandre Julliard julliard at winehq.org
Thu May 14 11:07:41 CDT 2009


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

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Wed May 13 13:55:46 2009 -0500

gdiplus: Add a trace to GdipDrawString.

---

 dlls/gdiplus/gdiplus.c         |    6 ++++++
 dlls/gdiplus/gdiplus_private.h |    2 ++
 dlls/gdiplus/graphics.c        |    3 +++
 3 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c
index 35caad8..52a9c39 100644
--- a/dlls/gdiplus/gdiplus.c
+++ b/dlls/gdiplus/gdiplus.c
@@ -380,3 +380,9 @@ inline void delete_element(region_element* element)
             break;
     }
 }
+
+const char *debugstr_rectf(CONST RectF* rc)
+{
+    if (!rc) return "(null)";
+    return wine_dbg_sprintf("(%0.2f,%0.2f,%0.2f,%0.2f)", rc->X, rc->Y, rc->Width, rc->Height);
+}
diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h
index f3bf797..1ee24a1 100644
--- a/dlls/gdiplus/gdiplus_private.h
+++ b/dlls/gdiplus/gdiplus_private.h
@@ -69,6 +69,8 @@ static inline REAL deg2rad(REAL degrees)
     return M_PI * degrees / 180.0;
 }
 
+extern const char *debugstr_rectf(CONST RectF* rc);
+
 struct GpPen{
     UINT style;
     GpUnit unit;
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 07b2114..623af7f 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2016,6 +2016,9 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
     SIZE size;
     RECT drawcoord;
 
+    TRACE("(%p, %s, %i, %p, %s, %p, %p)\n", graphics, debugstr_wn(string, length),
+        length, font, debugstr_rectf(rect), format, brush);
+
     if(!graphics || !string || !font || !brush || !rect)
         return InvalidParameter;
 




More information about the wine-cvs mailing list