[6/9] gdiplus: add TRACE(..) for font calls

Nikolay Sivov bunglehead at gmail.com
Tue Sep 2 16:08:25 CDT 2008


Changelog:
    - added few TRACE(..) for font-related calls

>From 89964636c53ccd237defa5eb6c5882492e93a157 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 3 Sep 2008 00:33:58 +0400
Subject:  added few TRACE(..) to font.c

---
 dlls/gdiplus/font.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 3a9d36d..210ebff 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -166,6 +166,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
     HFONT hfont, oldfont;
     TEXTMETRICW textmet;
 
+    TRACE("(%p, %p, %p)\n", hdc, logfont, font);
+
     if(!logfont || !font)
         return InvalidParameter;
 
@@ -206,6 +208,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
 {
     LOGFONTW lfw;
 
+    TRACE("(%p, %p, %p)\n", hdc, lfa, font);
+
     if(!lfa || !font)
         return InvalidParameter;
 
@@ -224,6 +228,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
  */
 GpStatus WINGDIPAPI GdipDeleteFont(GpFont* font)
 {
+    TRACE("(%p)\n", font);
+
     if(!font)
         return InvalidParameter;
 
@@ -240,6 +246,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
     HFONT hfont;
     LOGFONTW lfw;
 
+    TRACE("(%p, %p)\n", hdc, font);
+
     if(!font)
         return InvalidParameter;
 
@@ -294,6 +302,8 @@ GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
  */
 GpStatus WINGDIPAPI GdipGetFontSize(GpFont *font, REAL *size)
 {
+    TRACE("(%p, %p)\n", font, size);
+
     if (!(font && size)) return InvalidParameter;
 
     *size = font->emSize;
@@ -348,6 +358,8 @@ GpStatus WINGDIPAPI GdipGetFontStyle(GpFont *font, INT *style)
  */
 GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
 {
+    TRACE("(%p, %p)\n", font, unit);
+
     if (!(font && unit)) return InvalidParameter;
 
     *unit = font->unit;
@@ -361,6 +373,8 @@ GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
 GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
     LOGFONTW *lfw)
 {
+    TRACE("(%p, %p, %p)\n", font, graphics, lfw);
+
     /* FIXME: use graphics */
     if(!font || !graphics || !lfw)
         return InvalidParameter;
@@ -375,6 +389,8 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
  */
 GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
 {
+    TRACE("(%p, %p)\n", font, cloneFont);
+
     if(!font || !cloneFont)
         return InvalidParameter;
 
@@ -624,6 +640,8 @@ GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
 GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family,
         INT style, UINT16* CellDescent)
 {
+    TRACE("(%p, %d, %p)\n", family, style, CellDescent);
+
     if (!(family && CellDescent)) return InvalidParameter;
 
     *CellDescent = family->tmw.tmDescent;
@@ -730,6 +748,8 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif(GpFontFamily **nativeFamily)
 {
     static const WCHAR TimesNewRoman[] = {'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n','\0'};
 
+    TRACE("(%p)\n", nativeFamily);
+
     if (nativeFamily == NULL) return InvalidParameter;
 
     return GdipCreateFontFamilyFromName(TimesNewRoman, NULL, nativeFamily);
@@ -753,6 +773,8 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamil
      * affect anything */
     static const WCHAR MSSansSerif[] = {'M','S',' ','S','a','n','s',' ','S','e','r','i','f','\0'};
 
+    TRACE("(%p)\n", nativeFamily);
+
     if (nativeFamily == NULL) return InvalidParameter;
 
     return GdipCreateFontFamilyFromName(MSSansSerif, NULL, nativeFamily);
-- 
1.4.4.4






More information about the wine-patches mailing list