From e55b6b43e3c2d315487cd339b9679d7bc09212ff Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 19 Nov 2019 05:06:03 +0000 Subject: [PATCH] Fixes for building on ubuntu --- externals/LibCommon | 2 +- src/Editor/CGizmo.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/externals/LibCommon b/externals/LibCommon index 9ee4e6ac..8524191d 160000 --- a/externals/LibCommon +++ b/externals/LibCommon @@ -1 +1 @@ -Subproject commit 9ee4e6ac6cb1fa6b7db45099ae37026db2d2c49c +Subproject commit 8524191df613b9149369ed8578a6c4ea3038552b diff --git a/src/Editor/CGizmo.cpp b/src/Editor/CGizmo.cpp index e2e90529..f888d332 100644 --- a/src/Editor/CGizmo.cpp +++ b/src/Editor/CGizmo.cpp @@ -281,7 +281,7 @@ bool CGizmo::TransformFromInput(const CRay& rkRay, CCamera& rCamera) // Calculate normalized cursor position QPoint CursorPos = QCursor::pos(); - QRect Geom = QApplication::screenAt(CursorPos)->geometry(); + QRect Geom = QApplication::desktop()->screenGeometry(); CVector2f MouseCoords( (((2.f * CursorPos.x()) / Geom.width()) - 1.f), (1.f - ((2.f * CursorPos.y()) / Geom.height())) @@ -618,8 +618,8 @@ void CGizmo::UpdateTransform() void CGizmo::WrapCursor() { + QRect Geom = QApplication::desktop()->screenGeometry(); QPoint CursorPos = QCursor::pos(); - QRect Geom = QApplication::screenAt(CursorPos)->geometry(); // Horizontal if (CursorPos.x() == Geom.width() - 1)