mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 10:45:24 +02:00
git add seemed to miss a change
use event window, not primaryScreen
This commit is contained in:
parent
97e90ed798
commit
2c56d29a68
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue