mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-07-29 04:08:39 +00:00
make the size looks better for horizontal screen
This commit is contained in:
parent
d6868d2df5
commit
3fcfa64447
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ void VideoForm::updateShowSize(const QSize &newSize)
|
|||
showSize.setHeight(qMin(newSize.height(), screenRect.height() - 200));
|
||||
showSize.setWidth(showSize.height() * m_widthHeightRatio);
|
||||
} else {
|
||||
showSize.setWidth(qMin(newSize.width(), screenRect.width()/2));
|
||||
//showSize.setWidth(qMin(newSize.width(), screenRect.width()/2));
|
||||
showSize.setWidth(qMin(newSize.width(), screenRect.width() - 200));
|
||||
showSize.setHeight(showSize.width() * m_widthHeightRatio);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue