Dmitry Timoshkov : gdiplus: Print fixme in GdipGetNearestColor only once.

Alexandre Julliard julliard at winehq.org
Tue Feb 11 15:44:55 CST 2020


Module: wine
Branch: master
Commit: a99cad4ae735143321628e1a2d8e1b87a6d576a0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a99cad4ae735143321628e1a2d8e1b87a6d576a0

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Feb 11 13:06:19 2020 +0800

gdiplus: Print fixme in GdipGetNearestColor only once.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdiplus/graphics.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 8f3272b281..e8606f6b60 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -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);
     }
 




More information about the wine-cvs mailing list