Hans Leidekker : gdiplus: Add stub implementations of GdipBeginContainer2 and GdipEndContainer.
Alexandre Julliard
julliard at winehq.org
Mon Nov 24 09:16:58 CST 2008
Module: wine
Branch: master
Commit: 5ce729a4eba0a7d3b354ab0edc0276edf68b4d75
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ce729a4eba0a7d3b354ab0edc0276edf68b4d75
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Nov 24 10:22:51 2008 +0100
gdiplus: Add stub implementations of GdipBeginContainer2 and GdipEndContainer.
---
dlls/gdiplus/gdiplus.spec | 4 ++--
dlls/gdiplus/graphics.c | 21 +++++++++++++++++++++
include/gdiplusenums.h | 1 +
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index c61a914..b3c1c5c 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -32,7 +32,7 @@
@ stub GdipAddPathString
@ stub GdipAddPathStringI
@ stdcall GdipAlloc(long)
-@ stub GdipBeginContainer2
+@ stdcall GdipBeginContainer2(ptr ptr)
@ stub GdipBeginContainer
@ stub GdipBeginContainerI
@ stub GdipBitmapApplyEffect
@@ -200,7 +200,7 @@
@ stdcall GdipDrawRectanglesI(ptr ptr ptr long)
@ stdcall GdipDrawString(ptr ptr long ptr ptr ptr ptr)
@ stub GdipEmfToWmfBits
-@ stub GdipEndContainer
+@ stdcall GdipEndContainer(ptr ptr)
@ stub GdipEnumerateMetafileDestPoint
@ stub GdipEnumerateMetafileDestPointI
@ stub GdipEnumerateMetafileDestPoints
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 7c1ff9b..fbc62b9 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2819,6 +2819,27 @@ GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state)
return Ok;
}
+GpStatus WINGDIPAPI GdipBeginContainer2(GpGraphics *graphics, GraphicsContainer *state)
+{
+ FIXME("(%p, %p)\n", graphics, state);
+
+ if(!graphics || !state)
+ return InvalidParameter;
+
+ *state = 0xdeadbeef;
+ return Ok;
+}
+
+GpStatus WINGDIPAPI GdipEndContainer(GpGraphics *graphics, GraphicsState state)
+{
+ FIXME("(%p, 0x%x)\n", graphics, state);
+
+ if(!graphics || !state)
+ return InvalidParameter;
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipScaleWorldTransform(GpGraphics *graphics, REAL sx,
REAL sy, GpMatrixOrder order)
{
diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h
index 0299f41..3138b8c 100644
--- a/include/gdiplusenums.h
+++ b/include/gdiplusenums.h
@@ -20,6 +20,7 @@
#define _GDIPLUSENUMS_H
typedef UINT GraphicsState;
+typedef UINT GraphicsContainer;
enum Unit
{
More information about the wine-cvs
mailing list