mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	scene: constify subsurface_tree_set_clip()
This commit is contained in:
		
							parent
							
								
									873e8e4558
								
							
						
					
					
						commit
						b7d003caef
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -556,7 +556,7 @@ struct wlr_scene_tree *wlr_scene_subsurface_tree_create(
 | 
				
			||||||
 * A NULL or empty clip will disable clipping
 | 
					 * A NULL or empty clip will disable clipping
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
void wlr_scene_subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
					void wlr_scene_subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
				
			||||||
	struct wlr_box *clip);
 | 
						const struct wlr_box *clip);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Add a node displaying an xdg_surface and all of its sub-surfaces to the
 | 
					 * Add a node displaying an xdg_surface and all of its sub-surfaces to the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -326,7 +326,7 @@ static struct wlr_scene_subsurface_tree *get_subsurface_tree_from_node(
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
					static bool subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
				
			||||||
		struct wlr_box *clip) {
 | 
							const struct wlr_box *clip) {
 | 
				
			||||||
	if (node->type != WLR_SCENE_NODE_TREE) {
 | 
						if (node->type != WLR_SCENE_NODE_TREE) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -360,7 +360,7 @@ static bool subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_scene_subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
					void wlr_scene_subsurface_tree_set_clip(struct wlr_scene_node *node,
 | 
				
			||||||
		struct wlr_box *clip) {
 | 
							const struct wlr_box *clip) {
 | 
				
			||||||
#ifndef NDEBUG
 | 
					#ifndef NDEBUG
 | 
				
			||||||
	bool found =
 | 
						bool found =
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue