Merge pull request #3263 from jolavillette/fix/voip-preview-aspect-ratio

fix(voip): keep aspect ratio in camera preview
This commit is contained in:
csoler 2026-08-28 10:42:50 +02:00 committed by GitHub
commit fd69cff8d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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