gdi32: fix a trace
André Hentschel
nerv at dawncrow.de
Fri Nov 13 15:27:27 CST 2009
The Trace only makes sense with the values changed in that function.
---
dlls/gdi32/font.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index ed64166..64fb2f6 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -353,15 +353,15 @@ HFONT WINAPI CreateFontIndirectW( const LOGFONTW *plf )
}
TRACE("(%d %d %d %d %x %d %x %d %d) %s %s %s %s => %p\n",
- plf->lfHeight, plf->lfWidth,
- plf->lfEscapement, plf->lfOrientation,
- plf->lfPitchAndFamily,
- plf->lfOutPrecision, plf->lfClipPrecision,
- plf->lfQuality, plf->lfCharSet,
- debugstr_w(plf->lfFaceName),
- plf->lfWeight > 400 ? "Bold" : "",
- plf->lfItalic ? "Italic" : "",
- plf->lfUnderline ? "Underline" : "", hFont);
+ fontPtr->logfont.lfHeight, fontPtr->logfont.lfWidth,
+ fontPtr->logfont.lfEscapement, fontPtr->logfont.lfOrientation,
+ fontPtr->logfont.lfPitchAndFamily,
+ fontPtr->logfont.lfOutPrecision, fontPtr->logfont.lfClipPrecision,
+ fontPtr->logfont.lfQuality, fontPtr->logfont.lfCharSet,
+ debugstr_w(fontPtr->logfont.lfFaceName),
+ fontPtr->logfont.lfWeight > FW_REGULAR ? "Bold" : "",
+ fontPtr->logfont.lfItalic ? "Italic" : "",
+ fontPtr->logfont.lfUnderline ? "Underline" : "", hFont);
return hFont;
}
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list