From 2c56d29a68e508020941794f8a5bb17b65013d14 Mon Sep 17 00:00:00 2001 From: Triplelexx Date: Wed, 29 Jun 2016 03:47:20 +0100 Subject: [PATCH] git add seemed to miss a change use event window, not primaryScreen --- libraries/input-plugins/src/input-plugins/TouchscreenDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/input-plugins/src/input-plugins/TouchscreenDevice.cpp b/libraries/input-plugins/src/input-plugins/TouchscreenDevice.cpp index 271a3bb732..12e990757d 100644 --- a/libraries/input-plugins/src/input-plugins/TouchscreenDevice.cpp +++ b/libraries/input-plugins/src/input-plugins/TouchscreenDevice.cpp @@ -77,6 +77,8 @@ void TouchscreenDevice::touchBeginEvent(const QTouchEvent* event) { _firstTouchVec = glm::vec2(point.pos().x(), point.pos().y()); KeyboardMouseDevice::enableTouch(false); if (_screenDPI != event->window()->screen()->physicalDotsPerInch()) { + _screenDPIScale.x = (float)event->window()->screen()->physicalDotsPerInchX(); + _screenDPIScale.y = (float)event->window()->screen()->physicalDotsPerInchY(); _screenDPI = event->window()->screen()->physicalDotsPerInch(); } }