Commit 5ca9da2c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Make GdipGetNearestColor print FIXME only if indexed bitmap is…

gdiplus: Make GdipGetNearestColor print FIXME only if indexed bitmap is associated with the graphics object. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarVincent Povirk <vincent@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 2a4a8a5c
......@@ -4775,7 +4775,7 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
/* FIXME: Need to handle color depths less than 24bpp */
GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics *graphics, ARGB* argb)
{
FIXME("(%p, %p): Passing color unmodified\n", graphics, argb);
TRACE("(%p, %p)\n", graphics, argb);
if(!graphics || !argb)
return InvalidParameter;
......@@ -4783,6 +4783,13 @@ GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics *graphics, ARGB* argb)
if(graphics->busy)
return ObjectBusy;
if (graphics->image->type == ImageTypeBitmap)
{
GpBitmap *bitmap = (GpBitmap *)graphics->image;
if (IsIndexedPixelFormat(bitmap->format))
FIXME("(%p, %p): Passing color unmodified\n", graphics, argb);
}
return Ok;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment