mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-19 18:05:25 +00:00
Fixes for building on ubuntu
This commit is contained in:
2
externals/LibCommon
vendored
2
externals/LibCommon
vendored
Submodule externals/LibCommon updated: 9ee4e6ac6c...8524191df6
@@ -281,7 +281,7 @@ bool CGizmo::TransformFromInput(const CRay& rkRay, CCamera& rCamera)
|
|||||||
|
|
||||||
// Calculate normalized cursor position
|
// Calculate normalized cursor position
|
||||||
QPoint CursorPos = QCursor::pos();
|
QPoint CursorPos = QCursor::pos();
|
||||||
QRect Geom = QApplication::screenAt(CursorPos)->geometry();
|
QRect Geom = QApplication::desktop()->screenGeometry();
|
||||||
CVector2f MouseCoords(
|
CVector2f MouseCoords(
|
||||||
(((2.f * CursorPos.x()) / Geom.width()) - 1.f),
|
(((2.f * CursorPos.x()) / Geom.width()) - 1.f),
|
||||||
(1.f - ((2.f * CursorPos.y()) / Geom.height()))
|
(1.f - ((2.f * CursorPos.y()) / Geom.height()))
|
||||||
@@ -618,8 +618,8 @@ void CGizmo::UpdateTransform()
|
|||||||
|
|
||||||
void CGizmo::WrapCursor()
|
void CGizmo::WrapCursor()
|
||||||
{
|
{
|
||||||
|
QRect Geom = QApplication::desktop()->screenGeometry();
|
||||||
QPoint CursorPos = QCursor::pos();
|
QPoint CursorPos = QCursor::pos();
|
||||||
QRect Geom = QApplication::screenAt(CursorPos)->geometry();
|
|
||||||
|
|
||||||
// Horizontal
|
// Horizontal
|
||||||
if (CursorPos.x() == Geom.width() - 1)
|
if (CursorPos.x() == Geom.width() - 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user