Skip to content

Commit

Permalink
fix: mouse move grab rect too small on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rankun committed Jun 6, 2020
1 parent 723887c commit 9bcd2ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QtScrcpy/device/ui/videoform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bcd2ab

Please sign in to comment.