mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_compositor: Use wlr_fbox_equal
This commit is contained in:
		
							parent
							
								
									d452a729cb
								
							
						
					
					
						commit
						525506559a
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -230,10 +230,7 @@ static void surface_update_damage(pixman_region32_t *buffer_damage,
 | 
			
		|||
 | 
			
		||||
	if (pending->width != current->width ||
 | 
			
		||||
			pending->height != current->height ||
 | 
			
		||||
			pending->viewport.src.x != current->viewport.src.x ||
 | 
			
		||||
			pending->viewport.src.y != current->viewport.src.y ||
 | 
			
		||||
			pending->viewport.src.width != current->viewport.src.width ||
 | 
			
		||||
			pending->viewport.src.height != current->viewport.src.height) {
 | 
			
		||||
			!wlr_fbox_equal(&pending->viewport.src, ¤t->viewport.src)) {
 | 
			
		||||
		// Damage the whole buffer on resize or viewport source box change
 | 
			
		||||
		pixman_region32_union_rect(buffer_damage, buffer_damage, 0, 0,
 | 
			
		||||
			pending->buffer_width, pending->buffer_height);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue