Changeset View
Changeset View
Standalone View
Standalone View
backends/kwayland/waylandoutput.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | 136 | Q_FOREACH (const KWayland::Client::OutputDevice::Mode &m, m_output->modes()) { | |||
---|---|---|---|---|---|
158 | modeList[modeid] = mode; | 158 | modeList[modeid] = mode; | ||
159 | } | 159 | } | ||
160 | if (currentModeId == QLatin1String("-1")) { | 160 | if (currentModeId == QLatin1String("-1")) { | ||
161 | qCWarning(KSCREEN_WAYLAND) << "Could not find the current mode id" << modeList; | 161 | qCWarning(KSCREEN_WAYLAND) << "Could not find the current mode id" << modeList; | ||
162 | } | 162 | } | ||
163 | output->setCurrentModeId(currentModeId); | 163 | output->setCurrentModeId(currentModeId); | ||
164 | 164 | | |||
165 | output->setModes(modeList); | 165 | output->setModes(modeList); | ||
166 | output->setScale(m_output->scale()); | ||||
166 | } | 167 | } | ||
167 | 168 | | |||
168 | QString WaylandOutput::modeName(const KWayland::Client::OutputDevice::Mode &m) const | 169 | QString WaylandOutput::modeName(const KWayland::Client::OutputDevice::Mode &m) const | ||
169 | { | 170 | { | ||
170 | return QString::number(m.size.width()) + QLatin1Char('x') + | 171 | return QString::number(m.size.width()) + QLatin1Char('x') + | ||
171 | QString::number(m.size.height()) + QLatin1Char('@') + | 172 | QString::number(m.size.height()) + QLatin1Char('@') + | ||
172 | QString::number(qRound(m.refreshRate/1000.0)); | 173 | QString::number(qRound(m.refreshRate/1000.0)); | ||
173 | } | 174 | } | ||
Show All 14 Lines |