Gui: [skip ci] fix typo View3DInventorViewer::toQPoint

This commit is contained in:
wmayer
2023-04-08 14:49:22 +02:00
committed by wwmayer
parent e9a9413c71
commit 391a291982

View File

@@ -2429,7 +2429,7 @@ QPoint View3DInventorViewer::toQPoint(const SbVec2s& pnt) const
const SbViewportRegion& vp = this->getSoRenderManager()->getViewportRegion();
const SbVec2s& vps = vp.getViewportSizePixels();
int xpos = pnt[0];
int ypos = vps[1] - pnt[0] - 1;
int ypos = vps[1] - pnt[1] - 1;
qreal dev_pix_ratio = devicePixelRatio();
xpos = int(std::roundf(xpos / dev_pix_ratio));