[PATCH] Add GdipSetPenMode stub
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Jan 29 22:46:25 CST 2008
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pen.c | 11 +++++++++++
include/gdiplusenums.h | 7 +++++++
3 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 1b9e427..2421b6a 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 92d76d8..954e2e6 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -380,3 +380,14 @@ 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 c625e68..7c97005 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 */
--
1.5.3.8
--------------090002030901010401070107--
More information about the wine-patches
mailing list