Vincent Povirk : gdiplus: Implement GdipGetImagePaletteSize.
Module: wine Branch: master Commit: 59f45f2cbb2e3bc0006f697c3c1cddd7b41a9739 URL: http://source.winehq.org/git/wine.git/?a=commit;h=59f45f2cbb2e3bc0006f697c3c... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Dec 11 16:56:08 2009 -0600 gdiplus: Implement GdipGetImagePaletteSize. --- dlls/gdiplus/image.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 340f2e6..74c3f11 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -1465,12 +1465,19 @@ GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage *image, REAL *res) GpStatus WINGDIPAPI GdipGetImagePaletteSize(GpImage *image, INT *size) { - FIXME("%p %p\n", image, size); + TRACE("%p %p\n", image, size); if(!image || !size) return InvalidParameter; - return NotImplemented; + if (image->palette_count == 0) + *size = sizeof(ColorPalette); + else + *size = sizeof(UINT)*2 + sizeof(ARGB)*image->palette_count; + + TRACE("<-- %u\n", *size); + + return Ok; } /* FIXME: test this function for non-bitmap types */
participants (1)
-
Alexandre Julliard