mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	noop: implement setting a custom mode
This commit is contained in:
		
							parent
							
								
									fd0d7d0907
								
							
						
					
					
						commit
						670c787fa7
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -17,6 +17,12 @@ static void output_transform(struct wlr_output *wlr_output,
 | 
				
			||||||
	// empty
 | 
						// empty
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static bool output_set_custom_mode(struct wlr_output *wlr_output,
 | 
				
			||||||
 | 
							int32_t width, int32_t height, int32_t refresh) {
 | 
				
			||||||
 | 
						wlr_output_update_custom_mode(wlr_output, width, height, refresh);
 | 
				
			||||||
 | 
						return true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool output_make_current(struct wlr_output *wlr_output, int *buffer_age) {
 | 
					static bool output_make_current(struct wlr_output *wlr_output, int *buffer_age) {
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -37,6 +43,7 @@ static void output_destroy(struct wlr_output *wlr_output) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct wlr_output_impl output_impl = {
 | 
					static const struct wlr_output_impl output_impl = {
 | 
				
			||||||
	.transform = output_transform,
 | 
						.transform = output_transform,
 | 
				
			||||||
 | 
						.set_custom_mode = output_set_custom_mode,
 | 
				
			||||||
	.destroy = output_destroy,
 | 
						.destroy = output_destroy,
 | 
				
			||||||
	.make_current = output_make_current,
 | 
						.make_current = output_make_current,
 | 
				
			||||||
	.swap_buffers = output_swap_buffers,
 | 
						.swap_buffers = output_swap_buffers,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue