Module: wine Branch: master Commit: a364fc325819db40665c7214558da033af73b470 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a364fc325819db40665c721455...
Author: Evan Stade estade@gmail.com Date: Tue Aug 14 18:59:15 2007 -0700
gdiplus: Added GdipDeleteFont.
---
dlls/gdiplus/font.c | 10 ++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- include/gdiplusflat.h | 1 + 3 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index d321ba9..77ee274 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -75,6 +75,16 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc, return Ok; }
+GpStatus WINGDIPAPI GdipDeleteFont(GpFont* font) +{ + if(!font) + return InvalidParameter; + + GdipFree(font); + + return Ok; +} + /* FIXME: use graphics */ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics, LOGFONTW *lfw) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index c2b9042..b4c0c36 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -140,7 +140,7 @@ @ stub GdipDeleteCachedBitmap @ stdcall GdipDeleteCustomLineCap(ptr) @ stub GdipDeleteEffect -@ stub GdipDeleteFont +@ stdcall GdipDeleteFont(ptr) @ stub GdipDeleteFontFamily @ stdcall GdipDeleteGraphics(ptr) @ stdcall GdipDeleteMatrix(ptr) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index d2c6db8..ed11b4a 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 GdipDeleteFont(GpFont*); GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
#ifdef __cplusplus