mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view.c: refactor
This commit is contained in:
		
							parent
							
								
									fdc7b4f1f3
								
							
						
					
					
						commit
						778e4e890b
					
				
					 6 changed files with 83 additions and 84 deletions
				
			
		
							
								
								
									
										3
									
								
								output.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								output.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -21,7 +21,8 @@ static void render_decorations(struct wlr_output *output, struct view *view)
 | 
			
		|||
 | 
			
		||||
	box = deco_box(view, LAB_DECO_PART_TOP);
 | 
			
		||||
	float color2[] = { 0.7, 0.2, 0.2, 0.9 };
 | 
			
		||||
	wlr_render_rect(view->server->renderer, &box, color2, output->transform_matrix);
 | 
			
		||||
	wlr_render_rect(view->server->renderer, &box, color2,
 | 
			
		||||
			output->transform_matrix);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void render_surface(struct wlr_surface *surface, int sx, int sy,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue