summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland_common/qwaylandscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland_common/qwaylandscreen.cpp')
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandscreen.cpp4
1 files changed, 2 insertions, 2 deletions
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