Module: wine Branch: master Commit: 0d45cd0212365dd66898dbe895ebf18ded265b72 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d45cd0212365dd66898dbe895...
Author: Evan Stade estade@gmail.com Date: Wed Aug 1 17:55:54 2007 -0700
gdiplus: Added GdipSetPenWidth.
---
dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/pen.c | 9 +++++++++ include/gdiplusflat.h | 1 + 3 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 0087aef..bb5c36d 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -579,7 +579,7 @@ @ stdcall GdipSetPenStartCap(ptr long) @ stub GdipSetPenTransform @ stub GdipSetPenUnit -@ stub GdipSetPenWidth +@ stdcall GdipSetPenWidth(ptr long) @ stdcall GdipSetPixelOffsetMode(ptr long) @ stub GdipSetPropertyItem @ stub GdipSetRenderingOrigin diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index f121380..388567a 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -341,3 +341,12 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen *pen, GpLineCap cap)
return Ok; } + +GpStatus WINGDIPAPI GdipSetPenWidth(GpPen *pen, REAL width) +{ + if(!pen) return InvalidParameter; + + pen->width = width; + + return Ok; +} diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index cd4f3d6..9756403 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -45,6 +45,7 @@ GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen*,GpLineCap,GpLineCap,GpDashCap GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin); GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL); GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap); +GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);