mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: print preferred mode
While printing the supported output modes, annotate the preferred mode.
This commit is contained in:
		
							parent
							
								
									515679e4fe
								
							
						
					
					
						commit
						be4b9f7f5b
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -1370,9 +1370,10 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
 | 
				
			||||||
					mode->wlr_mode.preferred = true;
 | 
										mode->wlr_mode.preferred = true;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				wlr_log(WLR_INFO, "  %"PRId32"x%"PRId32"@%"PRId32,
 | 
									wlr_log(WLR_INFO, "  %"PRId32"x%"PRId32"@%"PRId32" %s",
 | 
				
			||||||
					mode->wlr_mode.width, mode->wlr_mode.height,
 | 
										mode->wlr_mode.width, mode->wlr_mode.height,
 | 
				
			||||||
					mode->wlr_mode.refresh);
 | 
										mode->wlr_mode.refresh,
 | 
				
			||||||
 | 
										mode->wlr_mode.preferred ? "(preferred)" : "");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				wl_list_insert(&wlr_conn->output.modes, &mode->wlr_mode.link);
 | 
									wl_list_insert(&wlr_conn->output.modes, &mode->wlr_mode.link);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue