mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Skip interlaced modes during drm mode detection
Fixes #3167 A better solution could be made if there's a need to.
This commit is contained in:
		
							parent
							
								
									040d62de00
								
							
						
					
					
						commit
						dc9fdd6385
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -1133,6 +1133,12 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
 | 
				
			||||||
					wlr_log_errno(WLR_ERROR, "Allocation failed");
 | 
										wlr_log_errno(WLR_ERROR, "Allocation failed");
 | 
				
			||||||
					continue;
 | 
										continue;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									if (mode->drm_mode.flags & DRM_MODE_FLAG_INTERLACE) {
 | 
				
			||||||
 | 
										free(mode);
 | 
				
			||||||
 | 
										continue;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				mode->drm_mode = drm_conn->modes[i];
 | 
									mode->drm_mode = drm_conn->modes[i];
 | 
				
			||||||
				mode->wlr_mode.width = mode->drm_mode.hdisplay;
 | 
									mode->wlr_mode.width = mode->drm_mode.hdisplay;
 | 
				
			||||||
				mode->wlr_mode.height = mode->drm_mode.vdisplay;
 | 
									mode->wlr_mode.height = mode->drm_mode.vdisplay;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue