Evan Stade : gdiplus: Added GdipGetLogFontW.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 15 04:34:12 CDT 2007


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

Author: Evan Stade <estade at gmail.com>
Date:   Tue Aug 14 18:58:52 2007 -0700

gdiplus: Added GdipGetLogFontW.

---

 dlls/gdiplus/font.c       |   12 ++++++++++++
 dlls/gdiplus/gdiplus.spec |    2 +-
 include/gdiplusflat.h     |    1 +
 3 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index d02b04d..a64ceac 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -59,3 +59,15 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
 
     return Ok;
 }
+
+/* FIXME: use graphics */
+GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
+    LOGFONTW *lfw)
+{
+    if(!font || !graphics || !lfw)
+        return InvalidParameter;
+
+    memcpy(lfw, &font->lfw, sizeof(LOGFONTW));
+
+    return Ok;
+}
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index c2189e9..c2b9042 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -312,7 +312,7 @@
 @ stub GdipGetLineTransform
 @ stub GdipGetLineWrapMode
 @ stub GdipGetLogFontA
-@ stub GdipGetLogFontW
+@ stdcall GdipGetLogFontW(ptr ptr ptr)
 @ stdcall GdipGetMatrixElements(ptr ptr)
 @ stub GdipGetMetafileDownLevelRasterizationLimit
 @ stub GdipGetMetafileHeaderFromEmf
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 5883f09..d2c6db8 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -241,6 +241,7 @@ GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes*,WrapMode,
 
 GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC,GDIPCONST LOGFONTA*,GpFont**);
 GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC,GDIPCONST LOGFONTW*,GpFont**);
+GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
 
 #ifdef __cplusplus
 }




More information about the wine-cvs mailing list