mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	clip surface damage to surface size
This commit is contained in:
		
							parent
							
								
									72a33b736f
								
							
						
					
					
						commit
						d87c58416b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -132,6 +132,9 @@ static void surface_commit(struct wl_client *client,
 | 
			
		|||
		pixman_region32_union(&surface->current.surface_damage,
 | 
			
		||||
				&surface->current.surface_damage,
 | 
			
		||||
				&surface->pending.surface_damage);
 | 
			
		||||
		pixman_region32_intersect_rect(&surface->current.surface_damage,
 | 
			
		||||
			&surface->current.surface_damage, 0, 0, width /
 | 
			
		||||
			surface->current.scale, height / surface->current.scale);
 | 
			
		||||
 | 
			
		||||
		pixman_region32_union(&surface->current.buffer_damage,
 | 
			
		||||
			&surface->current.buffer_damage,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue