From 87a7fb0ae767d178f63f1b433c9c10628edf28ee Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Sat, 2 Mar 2013 21:35:49 +0100 Subject: Report the right screen refresh rate. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qt wants the refresh rate in Hz, while Wayland uses mHz. Change-Id: Ib1e0235742ca099b5c4e390d2f98b910aabf0657 Reviewed-by: Jørgen Lind Reviewed-by: Andy Nichols --- src/plugins/platforms/wayland_common/qwaylandscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/platforms/wayland_common/qwaylandscreen.cpp b/src/plugins/platforms/wayland_common/qwaylandscreen.cpp index 6fedb0047..8393058fd 100644 --- a/src/plugins/platforms/wayland_common/qwaylandscreen.cpp +++ b/src/plugins/platforms/wayland_common/qwaylandscreen.cpp @@ -55,7 +55,7 @@ QWaylandScreen::QWaylandScreen(QWaylandDisplay *waylandDisplay, struct wl_output , mOutput(output) , mExtendedOutput(0) , mDepth(32) - , mRefreshRate(60) + , mRefreshRate(60000) , mFormat(QImage::Format_ARGB32_Premultiplied) , mWaylandCursor(new QWaylandCursor(this)) { @@ -114,7 +114,7 @@ Qt::ScreenOrientation QWaylandScreen::orientation() const qreal QWaylandScreen::refreshRate() const { - return mRefreshRate; + return mRefreshRate / 1000.f; } QPlatformCursor *QWaylandScreen::cursor() const -- cgit v1.2.3