adjusts click coordinates according to DPR
Compare changes
+ 13
− 7
@@ -1271,9 +1271,11 @@ void SelectionBasePlugin::slotMouseLassoSelection(QMouseEvent* _event) {
@@ -1271,9 +1271,11 @@ void SelectionBasePlugin::slotMouseLassoSelection(QMouseEvent* _event) {
if (!PluginFunctions::scenegraphPick(ACG::SceneGraph::PICK_FACE, _event->pos(), node_idx, target_idx, &hit_point))
hit_point = PluginFunctions::viewerProperties().glState().unproject(ACG::Vec3d(_event->pos().x(), y, 0.5));
@@ -1338,9 +1340,11 @@ void SelectionBasePlugin::slotMouseVolumeLassoSelection(QMouseEvent* _event) {
@@ -1338,9 +1340,11 @@ void SelectionBasePlugin::slotMouseVolumeLassoSelection(QMouseEvent* _event) {
if (!PluginFunctions::scenegraphPick(ACG::SceneGraph::PICK_FACE, _event->pos(), node_idx, target_idx, &hit_point))
hit_point = PluginFunctions::viewerProperties().glState().unproject(ACG::Vec3d(_event->pos().x(), y, 0.5));
@@ -1410,6 +1414,8 @@ void SelectionBasePlugin::slotMouseSphereSelection(QMouseEvent* _event) {
@@ -1410,6 +1414,8 @@ void SelectionBasePlugin::slotMouseSphereSelection(QMouseEvent* _event) {
@@ -1419,7 +1425,7 @@ void SelectionBasePlugin::slotMouseSphereSelection(QMouseEvent* _event) {
@@ -1419,7 +1425,7 @@ void SelectionBasePlugin::slotMouseSphereSelection(QMouseEvent* _event) {