make the size looks better for horizontal screen

This commit is contained in:
Tian Zhou 2019-11-19 03:15:12 -05:00
commit 3fcfa64447

View file

@ -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);
}