gdiplus: Make GdipGetNearestColor print FIXME only if indexed bitmap is associated with the graphics object.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a4a8a5cf3
commit
5ca9da2c01
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue