diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-05-04 16:31:52 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2012-05-09 14:32:00 +0200 |
commit | e14b1548b7d1211201b138bc077353cdbc0d0bed (patch) | |
tree | 7b7d56cc22789967089f20ffcbe75818d2a67a74 /tests | |
parent | 7f71672e27a2cbb7fb19333b77d7b3e4d4a068b9 (diff) |
Implemented refresh rate support.
Implements QWaylandScreen::refreshRate() based on the wl_output mode
information we get from the compositor.
In the compositor, adds API to override the refresh rate, with the
default set to whatever QScreen reports on the compositor-side.
Change-Id: I5f5175f2498940875c6ec68d29d25cf5993a1e65
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/client/mockoutput.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/client/mockoutput.cpp b/tests/auto/client/mockoutput.cpp index 18773f021..8066c2172 100644 --- a/tests/auto/client/mockoutput.cpp +++ b/tests/auto/client/mockoutput.cpp @@ -64,7 +64,8 @@ void Compositor::sendOutputGeometry(wl_resource *resource) void Compositor::sendOutputMode(wl_resource *resource) { - wl_output_send_mode(resource, WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED, 640, 480, 60); + const QRect &r = m_outputGeometry; + wl_output_send_mode(resource, WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED, r.width(), r.height(), 60); } void Compositor::setOutputGeometry(void *c, const QList<QVariant> ¶meters) |