mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 21:47:45 +00:00
Replace deprecated Qt APIs, Windows fixes
This commit is contained in:
@@ -281,7 +281,7 @@ bool CGizmo::TransformFromInput(const CRay& rkRay, CCamera& rCamera)
|
||||
|
||||
// Calculate normalized cursor position
|
||||
QPoint CursorPos = QCursor::pos();
|
||||
QRect Geom = QApplication::desktop()->screenGeometry();
|
||||
QRect Geom = QApplication::primaryScreen()->geometry();
|
||||
CVector2f MouseCoords(
|
||||
(((2.f * CursorPos.x()) / Geom.width()) - 1.f),
|
||||
(1.f - ((2.f * CursorPos.y()) / Geom.height()))
|
||||
@@ -618,7 +618,7 @@ void CGizmo::UpdateTransform()
|
||||
|
||||
void CGizmo::WrapCursor()
|
||||
{
|
||||
QRect Geom = QApplication::desktop()->screenGeometry();
|
||||
QRect Geom = QApplication::primaryScreen()->geometry();
|
||||
QPoint CursorPos = QCursor::pos();
|
||||
|
||||
// Horizontal
|
||||
|
||||
Reference in New Issue
Block a user