Alistair Leslie-Hughes : gdiplus: Add GdipSetPenMode stub.
Alexandre Julliard
julliard at winehq.org
Tue Feb 5 06:33:39 CST 2008
Module: wine
Branch: master
Commit: 9f0f97706dc49062f3e2afbca36bcc98f6060667
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f0f97706dc49062f3e2afbca36bcc98f6060667
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Jan 30 15:46:25 2008 +1100
gdiplus: Add GdipSetPenMode stub.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pen.c | 10 ++++++++++
include/gdiplusenums.h | 7 +++++++
3 files changed, 18 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..97fc99d 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 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 */
More information about the wine-cvs
mailing list