diff tools/libgfx.c @ 2467:a11ef670bd99

Move dmCompareColor() from libgfx to gfxconv as it is used only there, rename to dmExactCompareColor().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 16 Apr 2020 15:00:18 +0300
parents 16426e9dc238
children c6ee41fd98dd
line wrap: on
line diff
--- a/tools/libgfx.c	Thu Apr 16 14:35:41 2020 +0300
+++ b/tools/libgfx.c	Thu Apr 16 15:00:18 2020 +0300
@@ -108,17 +108,6 @@
 }
 
 
-BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, const BOOL alpha)
-{
-    if (c1->r == c2->r &&
-        c1->g == c2->g &&
-        c1->b == c2->b)
-        return alpha ? (c1->a == c2->a) : TRUE;
-    else
-        return FALSE;
-}
-
-
 int dmImageGetBytesPerPixel(const int format)
 {
     switch (format)