diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-03-02 21:35:49 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2013-03-02 22:06:41 +0100 |
commit | 87a7fb0ae767d178f63f1b433c9c10628edf28ee (patch) | |
tree | 2a24326464ba198e165c4535a2a616f268d4b92d /src | |
parent | 317c735b2e5694a87c9a87b177e6915c070e2a56 (diff) |
Report the right screen refresh rate.
Qt wants the refresh rate in Hz, while Wayland uses mHz.
Change-Id: Ib1e0235742ca099b5c4e390d2f98b910aabf0657
Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/wayland_common/qwaylandscreen.cpp | 4 |
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 |