Accurate MP3 material processing

This commit is contained in:
Jack Andersen
2019-11-06 16:52:45 -10:00
parent 79ec379c66
commit 6e3b23ec50
39 changed files with 1647 additions and 426 deletions

View File

@@ -8,6 +8,7 @@
#include <iostream>
#include <QApplication>
#include <QDesktopWidget>
#include <QScreen>
CGizmo::CGizmo()
: mSelectedAxes(EAxis::None)
@@ -280,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::screenAt(CursorPos)->geometry();
CVector2f MouseCoords(
(((2.f * CursorPos.x()) / Geom.width()) - 1.f),
(1.f - ((2.f * CursorPos.y()) / Geom.height()))
@@ -617,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)