summaryrefslogtreecommitdiff
path: root/wlr_scene.c
diff options
context:
space:
mode:
authoryiqiang <[email protected]>2022-08-16 10:46:21 +0800
committeryiqiang <[email protected]>2022-08-16 10:52:03 +0800
commitb0a7bb8d51a176dd2c7837a7047e1ab23915b56a (patch)
tree58ab1217c484ab2e67badfb88ebfb96301d1377d /wlr_scene.c
parent894e7917f0842c2d9115f352bfc141cf02879bae (diff)
wlr_scene: fix color value when filtering black boxes
Signed-off-by: yiqiang <[email protected]>
Diffstat (limited to 'wlr_scene.c')
-rw-r--r--wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wlr_scene.c b/wlr_scene.c
index b522f37..d2da8bd 100644
--- a/wlr_scene.c
+++ b/wlr_scene.c
@@ -1349,7 +1349,7 @@ static bool construct_render_list_iterator(struct wlr_scene_node *node,
// and even the rect itself.
if (node->type == WLR_SCENE_NODE_RECT) {
struct wlr_scene_rect *rect = scene_rect_from_node(node);
- float *black = (float[4]){ 1.f, 1.f, 1.f, 1.f };
+ float *black = (float[4]){ 0.f, 0.f, 0.f, 1.f };
if (memcmp(rect->color, black, sizeof(float) * 4) == 0) {
return false;