[gtk/wip/chergert/glproto: 499/526] use memcmp for colors
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 499/526] use memcmp for colors
- Date: Tue, 16 Feb 2021 01:14:39 +0000 (UTC)
commit 3476fe06cbb11ddb0e3f4f7af892cf728b9bfb5f
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]