Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.cpp
Show First 20 Lines • Show All 669 Lines • ▼ Show 20 Line(s) | 669 | if (isCurrentMode(&connector->modes[modeIndex])) { | |||
---|---|---|---|---|---|
670 | // nothing to do | 670 | // nothing to do | ||
671 | return; | 671 | return; | ||
672 | } | 672 | } | ||
673 | m_mode = connector->modes[modeIndex]; | 673 | m_mode = connector->modes[modeIndex]; | ||
674 | m_modesetRequested = true; | 674 | m_modesetRequested = true; | ||
675 | setWaylandMode(); | 675 | setWaylandMode(); | ||
676 | } | 676 | } | ||
677 | 677 | | |||
678 | QSize DrmOutput::pixelSize() const | | |||
679 | { | | |||
680 | return orientateSize(QSize(m_mode.hdisplay, m_mode.vdisplay)); | | |||
681 | } | | |||
682 | | ||||
683 | void DrmOutput::setWaylandMode() | 678 | void DrmOutput::setWaylandMode() | ||
684 | { | 679 | { | ||
685 | AbstractWaylandOutput::setWaylandMode(QSize(m_mode.hdisplay, m_mode.vdisplay), | 680 | AbstractWaylandOutput::setWaylandMode(QSize(m_mode.hdisplay, m_mode.vdisplay), | ||
686 | refreshRateForMode(&m_mode)); | 681 | refreshRateForMode(&m_mode)); | ||
687 | } | 682 | } | ||
688 | 683 | | |||
689 | void DrmOutput::pageFlipped() | 684 | void DrmOutput::pageFlipped() | ||
690 | { | 685 | { | ||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |