gdiplus: Print fixme in GdipGetNearestColor only once.

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:
Dmitry Timoshkov 2020-02-11 13:06:19 +08:00 committed by Alexandre Julliard
parent 54cd29bd38
commit a99cad4ae7
1 changed files with 2 additions and 1 deletions

View File

@ -4785,8 +4785,9 @@ GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics *graphics, ARGB* argb)
if (graphics->image->type == ImageTypeBitmap)
{
static int once;
GpBitmap *bitmap = (GpBitmap *)graphics->image;
if (IsIndexedPixelFormat(bitmap->format))
if (IsIndexedPixelFormat(bitmap->format) && !once++)
FIXME("(%p, %p): Passing color unmodified\n", graphics, argb);
}