mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-12 19:50:17 +05:00
Merge pull request #3263 from jolavillette/fix/voip-preview-aspect-ratio
fix(voip): keep aspect ratio in camera preview
This commit is contained in:
commit
fd69cff8d7
@ -232,6 +232,6 @@ void QVideoOutputDevice::showFrame(const QImage& img)
|
||||
#ifdef DEBUG_QVIDEODEVICE
|
||||
std::cerr << "img.size = " << img.width() << " x " << img.height() << std::endl;
|
||||
#endif
|
||||
setPixmap(QPixmap::fromImage(img).scaled( QSize(height()*4/3,height()),Qt::IgnoreAspectRatio,Qt::SmoothTransformation)) ;
|
||||
setPixmap(QPixmap::fromImage(img).scaled( QSize(height()*4/3,height()),Qt::KeepAspectRatio,Qt::SmoothTransformation)) ;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user