mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	damage-ring: constify wlr_damage_ring_add()
This commit is contained in:
		
							parent
							
								
									93597952aa
								
							
						
					
					
						commit
						fb7bd920a6
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -52,7 +52,7 @@ void wlr_damage_ring_set_bounds(struct wlr_damage_ring *ring,
 | 
			
		|||
 * Returns true if the region intersects the ring bounds, false otherwise.
 | 
			
		||||
 */
 | 
			
		||||
bool wlr_damage_ring_add(struct wlr_damage_ring *ring,
 | 
			
		||||
	pixman_region32_t *damage);
 | 
			
		||||
	const pixman_region32_t *damage);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Add a box to the current damage.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -39,7 +39,7 @@ void wlr_damage_ring_set_bounds(struct wlr_damage_ring *ring,
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
bool wlr_damage_ring_add(struct wlr_damage_ring *ring,
 | 
			
		||||
		pixman_region32_t *damage) {
 | 
			
		||||
		const pixman_region32_t *damage) {
 | 
			
		||||
	pixman_region32_t clipped;
 | 
			
		||||
	pixman_region32_init(&clipped);
 | 
			
		||||
	pixman_region32_intersect_rect(&clipped, damage,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue