[Gdiplus 1/3] Stub GdipGraphicsClear
Adam Petaccia
adam at tpetaccia.com
Sat Aug 16 22:28:40 CDT 2008
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphics.c | 18 ++++++++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 57f9734..f1e7c3c 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -403,7 +403,7 @@
@ stub GdipGetVisibleClipBounds
@ stub GdipGetVisibleClipBoundsI
@ stdcall GdipGetWorldTransform(ptr ptr)
-@ stub GdipGraphicsClear
+@ stdcall GdipGraphicsClear(ptr ptr)
@ stub GdipGraphicsSetAbort
@ stub GdipImageForceValidation
@ stdcall GdipImageGetFrameCount(ptr ptr ptr)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 2450b47..409683f 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2221,6 +2221,24 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
return Ok;
}
+/*******************************************************************************
+ * GdipGraphicsClear [GDIPLUS.@]
+ * Clears the graphics and sets the background to color
+ *
+ * PARAMS
+ * graphics [I] graphics context
+ * color [I] color to clear to
+ * RETURNS
+ * SUCCESS: Ok
+ * FAILURE: An element of GpStatus
+ */
+GpStatus WINGDIPAPI GdipGraphicsClear(GpGraphics *graphics, ARGB color)
+{
+ FIXME("stub: %p %08x\n", graphics, color);
+
+ return NotImplemented;
+}
+
GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics* graphics,
GDIPCONST WCHAR* string, INT length, GDIPCONST GpFont* font,
GDIPCONST RectF* layoutRect, GDIPCONST GpStringFormat *stringFormat,
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index ed88096..0e517fa 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -502,6 +502,7 @@ GpStatus WINGDIPAPI GdipTranslateRegion(GpRegion *, REAL, REAL);
GpStatus WINGDIPAPI GdipTranslateRegionI(GpRegion *, INT, INT);
GpStatus WINGDIPAPI GdipFlush(GpGraphics*, GpFlushIntention);
+GpStatus WINGDIPAPI GdipGraphicsClear(GpGraphics*, ARGB);
#ifdef __cplusplus
}
--
1.5.4.3
More information about the wine-patches
mailing list