Nikolay Sivov : gdiplus: Implemented GdipGetPenEndCap.
Alexandre Julliard
julliard at winehq.org
Fri Jun 27 07:41:59 CDT 2008
Module: wine
Branch: master
Commit: 6eadf3da08fc3b358536c1c32612b148e78a6c0b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6eadf3da08fc3b358536c1c32612b148e78a6c0b
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri Jun 27 03:26:43 2008 +0400
gdiplus: Implemented GdipGetPenEndCap.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pen.c | 10 ++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index ad79d0c..e76b9e1 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -359,7 +359,7 @@
@ stub GdipGetPenDashCount
@ stdcall GdipGetPenDashOffset(ptr ptr)
@ stdcall GdipGetPenDashStyle(ptr ptr)
-@ stub GdipGetPenEndCap
+@ stdcall GdipGetPenEndCap(ptr ptr)
@ stub GdipGetPenFillType
@ stub GdipGetPenLineJoin
@ stub GdipGetPenMiterLimit
diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c
index f6214f1..29d99d5 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -197,6 +197,16 @@ GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash)
return Ok;
}
+GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen *pen, GpLineCap *endCap)
+{
+ if(!pen || !endCap)
+ return InvalidParameter;
+
+ *endCap = pen->endcap;
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
{
if(!pen || !brush)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 87c9398..e78ff07 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -49,6 +49,7 @@ GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin);
GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL);
GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap);
GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
+GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen*,GpLineCap*);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC,HANDLE,GpGraphics**);
More information about the wine-cvs
mailing list