summaryrefslogtreecommitdiffstats
path: root/src/core/render_widget_host_view_qt.cpp
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-09-23 17:59:50 +0200
committerAndras Becsi <andras.becsi@digia.com>2014-09-24 11:51:15 +0200
commitd3330dd40f2904f06dce4b3a40924803e03646e1 (patch)
tree099ba77f4d420d783bc79e1e8412c8b3f318a4b9 /src/core/render_widget_host_view_qt.cpp
parenta193b3b9abb6d742b40d0a8067155932a5c2c2d3 (diff)
Fix issues on HiDPI displays
This patch fixes widgets rendering on HiDPI displays and notifies about the a potential device pixel ratio change when the window is moved. This addresses the blurriness when a web view is moved between an attached LoDPI screen and HiDPI screen resulting from the device pixel ratio not being updated. Change-Id: I97af0199c07deac8bbe4688c665aaa6df1608ae9 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Diffstat (limited to 'src/core/render_widget_host_view_qt.cpp')
-rw-r--r--src/core/render_widget_host_view_qt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/render_widget_host_view_qt.cpp b/src/core/render_widget_host_view_qt.cpp
index 31eb0a9d8..2cc5510ae 100644
--- a/src/core/render_widget_host_view_qt.cpp
+++ b/src/core/render_widget_host_view_qt.cpp
@@ -676,6 +676,8 @@ void RenderWidgetHostViewQt::notifyResize()
void RenderWidgetHostViewQt::windowBoundsChanged()
{
m_host->SendScreenRects();
+ if (m_delegate->window())
+ m_host->NotifyScreenInfoChanged();
}
void RenderWidgetHostViewQt::windowChanged()