summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-25 12:48:13 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-04-25 12:48:13 +0000
commit248d13d8dc0eb094170c5674e92d29819bd7dad5 (patch)
treedbb2cd67c232f86614ef6e6bd01faa60ef140001
parentec318e911c83ad1ee02f11dc59e28318f4ebb7e0 (diff)
parent2263db6259767b46d716b540c1faf9ae83cd1a76 (diff)
downloadgtk+-248d13d8dc0eb094170c5674e92d29819bd7dad5.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
gsk: Don't misuse bitwise operators See merge request GNOME/gtk!5867
-rw-r--r--gsk/gskrendernodeimpl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 56ee6895e5..f36638e821 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -3148,12 +3148,12 @@ gsk_container_node_new (GskRenderNode **children,
self->children[i] = gsk_render_node_ref (children[i]);
self->disjoint &= !graphene_rect_intersection (&bounds, &(children[i]->bounds), NULL);
graphene_rect_union (&bounds, &(children[i]->bounds), &bounds);
- node->prefers_high_depth |= gsk_render_node_prefers_high_depth (children[i]);
- node->offscreen_for_opacity |= children[i]->offscreen_for_opacity;
+ 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;
}
graphene_rect_init_from_rect (&node->bounds, &bounds);
- node->offscreen_for_opacity |= !self->disjoint;
+ node->offscreen_for_opacity = node->offscreen_for_opacity || !self->disjoint;
}
return node;
@@ -6034,7 +6034,7 @@ gsk_gl_shader_node_new (GskGLShader *shader,
for (guint i = 0; i < n_children; i++)
{
self->children[i] = gsk_render_node_ref (children[i]);
- node->prefers_high_depth |= gsk_render_node_prefers_high_depth (children[i]);
+ node->prefers_high_depth = node->prefers_high_depth || gsk_render_node_prefers_high_depth (children[i]);
}
}