From 9f0f97706dc49062f3e2afbca36bcc98f6060667 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 30 Jan 2008 15:46:25 +1100 Subject: [PATCH] gdiplus: Add GdipSetPenMode stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/pen.c | 10 ++++++++++ include/gdiplusenums.h | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 1b9e427a8fe..2421b6ada4e 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -575,7 +575,7 @@ @ stdcall GdipSetPenLineCap197819(ptr long long long) @ stdcall GdipSetPenLineJoin(ptr long) @ stdcall GdipSetPenMiterLimit(ptr long) -@ stub GdipSetPenMode +@ stdcall GdipSetPenMode(ptr long) @ stdcall GdipSetPenStartCap(ptr long) @ stub GdipSetPenTransform @ stub GdipSetPenUnit diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index 92d76d834c7..97fc99dacdf 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -380,3 +380,13 @@ GpStatus WINGDIPAPI GdipSetPenWidth(GpPen *pen, REAL width) return Ok; } + + +GpStatus WINGDIPAPI GdipSetPenMode(GpPen *pen, GpPenAlignment penAlignment) +{ + if(!pen) return InvalidParameter; + + FIXME("stub (%d)\n", penAlignment); + + return Ok; +} diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h index c625e684e2b..7c970058b56 100644 --- a/include/gdiplusenums.h +++ b/include/gdiplusenums.h @@ -124,6 +124,12 @@ enum InterpolationMode InterpolationModeHighQualityBicubic }; +enum PenAlignment +{ + PenAlignmentCenter = 0, + PenAlignmentInset = 1 +}; + enum PixelOffsetMode { PixelOffsetModeInvalid = QualityModeInvalid, @@ -279,6 +285,7 @@ typedef enum StringAlignment StringAlignment; typedef enum StringTrimming StringTrimming; typedef enum StringFormatFlags StringFormatFlags; typedef enum HotkeyPrefix HotkeyPrefix; +typedef enum PenAlignment GpPenAlignment; #endif /* end of c typedefs */