From f6bc469e8ccf471c4409592e2d49e46b47a24340 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 9 Apr 2008 13:09:34 -0700 Subject: [PATCH 08/22] 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(-) create mode 100644 dlls/gdiplus/region.c 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 + +#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; +} -- 1.5.3.6