mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_scene: fix color value when filtering black boxes
Signed-off-by: yiqiang <yiqiang@kylinos.cn>
This commit is contained in:
		
							parent
							
								
									bea4bd43e3
								
							
						
					
					
						commit
						3621c14b82
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1349,7 +1349,7 @@ static bool construct_render_list_iterator(struct wlr_scene_node *node,
 | 
				
			||||||
	// and even the rect itself.
 | 
						// and even the rect itself.
 | 
				
			||||||
	if (node->type == WLR_SCENE_NODE_RECT) {
 | 
						if (node->type == WLR_SCENE_NODE_RECT) {
 | 
				
			||||||
		struct wlr_scene_rect *rect = scene_rect_from_node(node);
 | 
							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) {
 | 
							if (memcmp(rect->color, black, sizeof(float) * 4) == 0) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue