[gtk/wip/chergert/glproto] use memcmp for colors



commit 2173c864267a9e9231f6a77258e9479245eb4421
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 10 15:29:45 2021 -0800

    use memcmp for colors

 gsk/next/gskglrenderjob.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 22a42503c3..01ab20587a 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1507,7 +1507,7 @@ sort_border_sides (const GdkRGBA *colors,
 
       for (guint k = i + 1; k < 4; k ++)
         {
-          if (gdk_rgba_equal (&colors[k], &colors[i]))
+          if (memcmp (&colors[k], &colors[i], sizeof (GdkRGBA)) == 0)
             {
               indices[cur] = k;
               done[k] = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]