Nikolay Sivov : gdiplus: GdipSetPathMarker implementation.
Alexandre Julliard
julliard at winehq.org
Thu Jun 26 06:48:33 CDT 2008
Module: wine
Branch: master
Commit: f8826a852512f2c326abcb109919fe8addcc50c3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f8826a852512f2c326abcb109919fe8addcc50c3
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue Jun 24 01:57:22 2008 +0400
gdiplus: GdipSetPathMarker implementation.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphicspath.c | 16 ++++++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 9fb0e9d..112e0b8 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -561,7 +561,7 @@
@ stdcall GdipSetPathGradientSurroundColorsWithCount(ptr ptr ptr)
@ stub GdipSetPathGradientTransform
@ stdcall GdipSetPathGradientWrapMode(ptr long)
-@ stub GdipSetPathMarker
+@ stdcall GdipSetPathMarker(ptr)
@ stdcall GdipSetPenBrushFill(ptr ptr)
@ stdcall GdipSetPenColor(ptr long)
@ stub GdipSetPenCompoundArray
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index d17b392..11374ad 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -833,3 +833,19 @@ GpStatus WINGDIPAPI GdipAddPathRectanglesI(GpPath *path, GDIPCONST GpRect *rects
return retstat;
}
+
+GpStatus WINGDIPAPI GdipSetPathMarker(GpPath* path)
+{
+ INT count;
+
+ if(!path)
+ return InvalidParameter;
+
+ count = path->pathdata.Count;
+
+ /* set marker flag */
+ if(count > 0)
+ path->pathdata.Types[count-1] |= PathPointTypePathMarker;
+
+ return Ok;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index a0dd2ed..96ee322 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -146,6 +146,7 @@ GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics*,CompositingQuality);
GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics*,InterpolationMode);
GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics*,REAL);
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics*,GpUnit);
+GpStatus WINGDIPAPI GdipSetPathMarker(GpPath*);
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics*,PixelOffsetMode);
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode);
GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics*,TextRenderingHint);
More information about the wine-cvs
mailing list