diff options
author | yiqiang <yiqiang@kylinos.cn> | 2022-08-16 10:46:21 +0800 |
---|---|---|
committer | yiqiang <yiqiang@kylinos.cn> | 2022-08-16 10:52:03 +0800 |
commit | 3621c14b8253b2417938e598205a1d03a8d154d3 (patch) | |
tree | 7002ad65d564830fea7296a138f0df390701bb83 | |
parent | bea4bd43e3a46af717f211f0a8e581a72cea7cb9 (diff) |
wlr_scene: fix color value when filtering black boxes
Signed-off-by: yiqiang <yiqiang@kylinos.cn>
-rw-r--r-- | types/scene/wlr_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index b522f377..d2da8bd4 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/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; |