mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output-damage: constify wlr_output_damage_add()
This commit is contained in:
		
							parent
							
								
									fb7bd920a6
								
							
						
					
					
						commit
						9e10e9af7f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -82,7 +82,7 @@ bool wlr_output_damage_attach_render(struct wlr_output_damage *output_damage,
 | 
				
			||||||
 * Accumulates damage and schedules a `frame` event.
 | 
					 * Accumulates damage and schedules a `frame` event.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
void wlr_output_damage_add(struct wlr_output_damage *output_damage,
 | 
					void wlr_output_damage_add(struct wlr_output_damage *output_damage,
 | 
				
			||||||
	pixman_region32_t *damage);
 | 
						const pixman_region32_t *damage);
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Damages the whole output and schedules a `frame` event.
 | 
					 * Damages the whole output and schedules a `frame` event.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -168,7 +168,7 @@ bool wlr_output_damage_attach_render(struct wlr_output_damage *output_damage,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_output_damage_add(struct wlr_output_damage *output_damage,
 | 
					void wlr_output_damage_add(struct wlr_output_damage *output_damage,
 | 
				
			||||||
		pixman_region32_t *damage) {
 | 
							const pixman_region32_t *damage) {
 | 
				
			||||||
	int width, height;
 | 
						int width, height;
 | 
				
			||||||
	wlr_output_transformed_resolution(output_damage->output, &width, &height);
 | 
						wlr_output_transformed_resolution(output_damage->output, &width, &height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue