mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-22 17:29:09 +00:00
fix: grab rect dpi error on linux
This commit is contained in:
parent
ee7767f5b5
commit
278d38c3b4
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ QRect VideoForm::getGrabCursorRect()
|
|||
#elif defined(Q_OS_LINUX)
|
||||
rc = QRect(ui->keepRatioWidget->mapToGlobal(m_videoWidget->pos()), m_videoWidget->size());
|
||||
// high dpi support -- taken from the WIN32 section and untested
|
||||
rc.setTopLeft(rc.topLeft() * m_videoWidget->devicePixelRatio());
|
||||
rc.setBottomRight(rc.bottomRight() * m_videoWidget->devicePixelRatio());
|
||||
rc.setTopLeft(rc.topLeft() * m_videoWidget->devicePixelRatioF());
|
||||
rc.setBottomRight(rc.bottomRight() * m_videoWidget->devicePixelRatioF());
|
||||
|
||||
rc.setX(rc.x() + 10);
|
||||
rc.setY(rc.y() + 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue