From ea96cd3a52875e4fd883fffb93c340f17ca44778 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Fri, 24 Jul 2009 12:48:15 +0100 Subject: [PATCH] gdiplus: Implement stub for GdipGetImagePalette. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/image.c | 16 ++++++++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 008841d867e..c9dcd3075f1 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -291,7 +291,7 @@ @ stdcall GdipGetImageHeight(ptr ptr) @ stdcall GdipGetImageHorizontalResolution(ptr ptr) @ stub GdipGetImageItemData -@ stub GdipGetImagePalette +@ stdcall GdipGetImagePalette(ptr ptr long) @ stdcall GdipGetImagePaletteSize(ptr ptr) @ stdcall GdipGetImagePixelFormat(ptr ptr) @ stdcall GdipGetImageRawFormat(ptr ptr) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index a603adba223..f06eb029861 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -1457,6 +1457,22 @@ GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage *image, IStream* stream, return stat; } +/***************************************************************************** + * GdipGetImagePalette [GDIPLUS.@] + */ +GpStatus WINGDIPAPI GdipGetImagePalette(GpImage *image, ColorPalette *palette, INT size) +{ + static int calls = 0; + + if(!image) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + /***************************************************************************** * GdipSetImagePalette [GDIPLUS.@] */ diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 2ee24bdbc38..71101ce1e9e 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -346,6 +346,7 @@ GpStatus WINGDIPAPI GdipGetImageFlags(GpImage*,UINT*); GpStatus WINGDIPAPI GdipGetImageHeight(GpImage*,UINT*); GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage*,REAL*); GpStatus WINGDIPAPI GdipGetImageItemData(GpImage*,ImageItemData*); +GpStatus WINGDIPAPI GdipGetImagePalette(GpImage*,ColorPalette*,INT); GpStatus WINGDIPAPI GdipGetImagePixelFormat(GpImage*,PixelFormat*); GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*); GpStatus WINGDIPAPI GdipGetImageThumbnail(GpImage*,UINT,UINT,GpImage**,GetThumbnailImageAbort,VOID*);