Module: wine
Branch: master
Commit: 139da784bf1bae0fa19184a3a46be1449efbee1f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=139da784bf1bae0fa19184a3a…
Author: Lei Zhang <thestig(a)google.com>
Date: Wed Apr 9 13:25:14 2008 -0700
gdiplus: Add a stub for GdipSetImageAttributesOutputChannel.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/imageattributes.c | 11 +++++++++++
include/Makefile.in | 1 +
include/gdiplus.h | 2 ++
include/gdipluscolor.h | 37 +++++++++++++++++++++++++++++++++++++
5 files changed, 52 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index b9d4c59..236714c 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -526,7 +526,7 @@
@ stdcall GdipSetImageAttributesColorMatrix(ptr long long ptr ptr long)
@ stdcall GdipSetImageAttributesGamma(ptr long long long)
@ stdcall GdipSetImageAttributesNoOp(ptr long long)
-@ stub GdipSetImageAttributesOutputChannel
+@ stdcall GdipSetImageAttributesOutputChannel(ptr long long long)
@ stub GdipSetImageAttributesOutputChannelColorProfile
@ stub GdipSetImageAttributesRemapTable
@ stub GdipSetImageAttributesThreshold
diff --git a/dlls/gdiplus/imageattributes.c b/dlls/gdiplus/imageattributes.c
index 5562c91..61cf012 100644
--- a/dlls/gdiplus/imageattributes.c
+++ b/dlls/gdiplus/imageattributes.c
@@ -123,3 +123,14 @@ GpStatus WINGDIPAPI GdipSetImageAttributesNoOp(GpImageAttributes *imageAttr,
return NotImplemented;
}
+
+GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannel(GpImageAttributes *imageAttr,
+ ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags)
+{
+ static int calls;
+
+ if(!(calls++))
+ FIXME("not implemented\n");
+
+ return NotImplemented;
+}
diff --git a/include/Makefile.in b/include/Makefile.in
index efcd92c..11ee8b6 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -195,6 +195,7 @@ SRCDIR_INCLUDES = \
fci.h \
fdi.h \
gdiplus.h \
+ gdipluscolor.h \
gdipluscolormatrix.h \
gdiplusenums.h \
gdiplusflat.h \
diff --git a/include/gdiplus.h b/include/gdiplus.h
index 9e72f52..c8385db 100644
--- a/include/gdiplus.h
+++ b/include/gdiplus.h
@@ -34,6 +34,7 @@ namespace Gdiplus
#include "gdipluspixelformats.h"
#include "gdiplusmetaheader.h"
#include "gdiplusimaging.h"
+#include "gdipluscolor.h"
#include "gdipluscolormatrix.h"
#include "gdiplusgpstubs.h"
@@ -53,6 +54,7 @@ namespace Gdiplus
#include "gdipluspixelformats.h"
#include "gdiplusmetaheader.h"
#include "gdiplusimaging.h"
+#include "gdipluscolor.h"
#include "gdipluscolormatrix.h"
#include "gdiplusgpstubs.h"
diff --git a/include/gdipluscolor.h b/include/gdipluscolor.h
new file mode 100644
index 0000000..5c8e53f
--- /dev/null
+++ b/include/gdipluscolor.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2808 Google (Lei Zhang)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef _GDIPLUSCOLOR_H
+#define _GDIPLUSCOLOR_H
+
+enum ColorChannelFlags
+{
+ ColorChannelFlagsC,
+ ColorChannelFlagsM,
+ ColorChannelFlagsY,
+ ColorChannelFlagsK,
+ ColorChannelFlagsLast
+};
+
+#ifndef __cplusplus
+
+typedef enum ColorChannelFlags ColorChannelFlags;
+
+#endif /* end of c typedefs */
+
+#endif /* _GDIPLUSCOLOR_H */
Module: wine
Branch: master
Commit: 5d7e2254f6a9bc3a844ada910995fa58728c5bf4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d7e2254f6a9bc3a844ada910…
Author: Lei Zhang <thestig(a)google.com>
Date: Wed Apr 9 13:09:34 2008 -0700
gdiplus: Add a stub for GdipSetEmpty.
---
dlls/gdiplus/Makefile.in | 1 +
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/region.c | 41 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/Makefile.in b/dlls/gdiplus/Makefile.in
index f71aaab..f1e9e92 100644
--- a/dlls/gdiplus/Makefile.in
+++ b/dlls/gdiplus/Makefile.in
@@ -19,6 +19,7 @@ C_SRCS = \
matrix.c \
pathiterator.c \
pen.c \
+ region.c \
stringformat.c
@MAKE_DLL_RULES@
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 810a565..865eb78 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -520,7 +520,7 @@
@ stdcall GdipSetCustomLineCapStrokeJoin(ptr long)
@ stdcall GdipSetCustomLineCapWidthScale(ptr long)
@ stdcall GdipSetEffectParameters(ptr ptr long)
-@ stub GdipSetEmpty
+@ stdcall GdipSetEmpty(ptr)
@ stub GdipSetImageAttributesCachedBackground
@ stdcall GdipSetImageAttributesColorKeys(ptr long long long long)
@ stdcall GdipSetImageAttributesColorMatrix(ptr long long ptr ptr long)
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
new file mode 100644
index 0000000..9656f4e
--- /dev/null
+++ b/dlls/gdiplus/region.c
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2008 Google (Lei Zhang)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+
+#include "objbase.h"
+
+#include "gdiplus.h"
+#include "gdiplus_private.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
+
+GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *region)
+{
+ static int calls;
+
+ if(!(calls++))
+ FIXME("not implemented\n");
+
+ return NotImplemented;
+}