Chris Wulff : gdiplus: Implement hatch brush accessor functions.
Alexandre Julliard
julliard at winehq.org
Mon Jan 12 10:41:03 CST 2009
Module: wine
Branch: master
Commit: 10637b4f0d602555a19d914383e6b270789bbe92
URL: http://source.winehq.org/git/wine.git/?a=commit;h=10637b4f0d602555a19d914383e6b270789bbe92
Author: Chris Wulff <crwulff at rochester.rr.com>
Date: Sat Jan 10 18:52:31 2009 -0500
gdiplus: Implement hatch brush accessor functions.
---
dlls/gdiplus/brush.c | 33 +++++++++++++++++++++++++++++++++
dlls/gdiplus/gdiplus.spec | 6 +++---
2 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 59d3aa2..7e1fa69 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -717,6 +717,39 @@ GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
return Ok;
}
+GpStatus WINGDIPAPI GdipGetHatchBackgroundColor(GpHatch *brush, ARGB *backcol)
+{
+ TRACE("(%p, %p)\n", brush, backcol);
+
+ if(!brush || !backcol) return InvalidParameter;
+
+ *backcol = brush->backcol;
+
+ return Ok;
+}
+
+GpStatus WINGDIPAPI GdipGetHatchForegroundColor(GpHatch *brush, ARGB *forecol)
+{
+ TRACE("(%p, %p)\n", brush, forecol);
+
+ if(!brush || !forecol) return InvalidParameter;
+
+ *forecol = brush->forecol;
+
+ return Ok;
+}
+
+GpStatus WINGDIPAPI GdipGetHatchStyle(GpHatch *brush, HatchStyle *hatchstyle)
+{
+ TRACE("(%p, %p)\n", brush, hatchstyle);
+
+ if(!brush || !hatchstyle) return InvalidParameter;
+
+ *hatchstyle = brush->hatchstyle;
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
{
TRACE("(%p)\n", brush);
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index e7ddc2a..3716207 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -275,9 +275,9 @@
@ stdcall GdipGetGenericFontFamilyMonospace(ptr)
@ stdcall GdipGetGenericFontFamilySansSerif(ptr)
@ stdcall GdipGetGenericFontFamilySerif(ptr)
-@ stub GdipGetHatchBackgroundColor
-@ stub GdipGetHatchForegroundColor
-@ stub GdipGetHatchStyle
+@ stdcall GdipGetHatchBackgroundColor(ptr ptr)
+@ stdcall GdipGetHatchForegroundColor(ptr ptr)
+@ stdcall GdipGetHatchStyle(ptr ptr)
@ stub GdipGetHemfFromMetafile
@ stub GdipGetImageAttributesAdjustedPalette
@ stdcall GdipGetImageBounds(ptr ptr ptr)
More information about the wine-cvs
mailing list