Use first Connector with EDID Data for drm output.

This commit is contained in:
jojo61 2023-07-14 10:41:41 +02:00
parent e2e9ae94d7
commit 45c86f12dd
1 changed files with 2 additions and 1 deletions

3
drm.c
View File

@ -280,7 +280,7 @@ static int FindDevice(VideoRender *render) {
if (DRMConnector && strcmp(DRMConnector, connectorstr))
continue;
if (connector->connection == DRM_MODE_CONNECTED && connector->count_modes > 0) {
if (/*connector->connection == DRM_MODE_CONNECTED && */ connector->count_modes > 0) {
float aspect = (float)connector->mmWidth / (float)connector->mmHeight;
if ((aspect > 1.70) && (aspect < 1.85)) {
render->mmHeight = 90;
@ -492,6 +492,7 @@ static void drm_swap_buffers() {
uint32_t fb;
eglSwapBuffers(eglDisplay, eglSurface);
usleep(1000);
struct gbm_bo *bo = gbm_surface_lock_front_buffer(gbm.surface);
#if 1
if (bo == NULL)