Skip to content

Commit

Permalink
eglfs_kms: Report the real preferred mode from QScreen
Browse files Browse the repository at this point in the history
...and make the struct initialization more readable while we are at it.

Task-number: QTBUG-62262
Change-Id: I1af82d1b2fd5a3c94dcdb720920618d4da80c21c
Reviewed-by: Andy Nichols <[email protected]>
  • Loading branch information
alpqr committed Sep 5, 2017
1 parent 95d7313 commit 744bb7e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platformsupport/kmsconvenience/qkmsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 744bb7e

Please sign in to comment.