eglfs_kms: Report the real preferred mode from QScreen

...and make the struct initialization more readable while we are at it.

Task-number: QTBUG-62262
Change-Id: I1af82d1b2fd5a3c94dcdb720920618d4da80c21c
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
bb10
Laszlo Agocs 2017-08-02 15:09:41 +02:00
parent 95d73132c7
commit 744bb7e85a
1 changed files with 6 additions and 6 deletions

View File

@ -329,17 +329,17 @@ QPlatformScreen *QKmsDevice::createScreenForConnector(drmModeResPtr resources,
connector->connector_id,
crtc_id,
physSize,
preferred >= 0 ? preferred : selected_mode,
selected_mode,
selected_mode,
false,
drmModeGetCrtc(m_dri_fd, crtc_id),
false, // mode_set
drmModeGetCrtc(m_dri_fd, crtc_id), // saved_crtc
modes,
connector->subpixel,
connectorProperty(connector, QByteArrayLiteral("DPMS")),
connectorPropertyBlob(connector, QByteArrayLiteral("EDID")),
false,
0,
false
false, // wants_plane
0, // plane_id
false // plane_set
};
bool ok;