fix: mouse move grab rect too small on mac

This commit is contained in:
rankun 2020-06-06 20:49:33 +08:00
parent 38a88fce87
commit 6635f53fc1

View file

@ -100,10 +100,10 @@ QRect VideoForm::getGrabCursorRect()
rc = m_videoWidget->geometry();
rc.setTopLeft(ui->keepRadioWidget->mapToGlobal(rc.topLeft()));
rc.setBottomRight(ui->keepRadioWidget->mapToGlobal(rc.bottomRight()));
rc.setX(rc.x() + 100);
rc.setY(rc.y() + 30);
rc.setWidth(rc.width() - 180);
rc.setHeight(rc.height() - 60);
rc.setX(rc.x() + 10);
rc.setY(rc.y() + 10);
rc.setWidth(rc.width() - 20);
rc.setHeight(rc.height() - 20);
#else
#endif