[gtk/wip/baedert/for-master: 130/133] gsk: Fix border node diff implementation




commit c9868788b40fdbf5caef7a586b069c93bb88e5ca
Author: Timm Bäder <mail baedert org>
Date:   Fri Aug 7 06:54:16 2020 +0200

    gsk: Fix border node diff implementation
    
    This was showing up in the interactive constraint demo in gtk4-demo.

 gsk/gskrendernodeimpl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index e8a1ad2a6e..0c0a809b7f 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -544,8 +544,9 @@ gsk_border_node_diff (GskRenderNode  *node1,
 
   if (self1->uniform &&
       self2->uniform &&
-      gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]) &&
-      self1->border_width[0] == self2->border_width[0])
+      self1->border_width[0] == self2->border_width[0] &&
+      gsk_rounded_rect_equal (&self1->outline, &self2->outline) &&
+      gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]))
     return;
 
   if (gsk_rounded_rect_equal (&self1->outline, &self2->outline) &&


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