backends/drm: Fix custom mode generation
maxSizeRefreshRate is uninitialized. BUG: 463619
This commit is contained in:
parent
85b9bcc10c
commit
e6d2a19857
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ QList<std::shared_ptr<DrmConnectorMode>> DrmConnector::generateCommonModes()
|
|||
{
|
||||
QList<std::shared_ptr<DrmConnectorMode>> ret;
|
||||
QSize maxSize;
|
||||
uint32_t maxSizeRefreshRate;
|
||||
uint32_t maxSizeRefreshRate = 0;
|
||||
for (const auto &mode : std::as_const(m_driverModes)) {
|
||||
if (mode->size().width() >= maxSize.width() && mode->size().height() >= maxSize.height() && mode->refreshRate() >= maxSizeRefreshRate) {
|
||||
maxSize = mode->size();
|
||||
|
|
Loading…
Reference in a new issue