git add seemed to miss a change

use event window, not primaryScreen
This commit is contained in:
Triplelexx 2016-06-29 03:47:20 +01:00
parent 97e90ed798
commit 2c56d29a68

View file

@ -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();
}
}