summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-25 16:43:02 +0200
committerMatthias Clasen <mclasen@redhat.com>2023-04-25 16:43:02 +0200
commit74c0171edfe35b505291973966b3c7754e58a22c (patch)
tree103c13525c94f54dc52b977e1835457e0640f7ae /gsk
parent248d13d8dc0eb094170c5674e92d29819bd7dad5 (diff)
downloadgtk+-74c0171edfe35b505291973966b3c7754e58a22c.tar.gz
gsk: Don't misuse bitwise operators
We should use && for booleans, not &=.
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gskrendernodeimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index f36638e821..bde92c1edc 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -3146,7 +3146,7 @@ gsk_container_node_new (GskRenderNode **children,
for (guint i = 1; i < n_children; i++)
{
self->children[i] = gsk_render_node_ref (children[i]);
- self->disjoint &= !graphene_rect_intersection (&bounds, &(children[i]->bounds), NULL);
+ self->disjoint = self->disjoint && !graphene_rect_intersection (&bounds, &(children[i]->bounds), NULL);
graphene_rect_union (&bounds, &(children[i]->bounds), &bounds);
node->prefers_high_depth = node->prefers_high_depth || gsk_render_node_prefers_high_depth (children[i]);
node->offscreen_for_opacity = node->offscreen_for_opacity || children[i]->offscreen_for_opacity;