mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(avform): Added rounding height in mode name.
This commit is contained in:
parent
6e1ef70651
commit
c2e3358dd2
|
@ -271,7 +271,7 @@ void AVForm::fillCameraModesComboBox()
|
|||
qDebug("width: %d, height: %d, FPS: %f, pixel format: %s\n", mode.width, mode.height, mode.FPS, pixelFormat.toStdString().c_str());
|
||||
|
||||
if (mode.height && mode.width)
|
||||
str += QString("%1p").arg(mode.height);
|
||||
str += QString("%1p").arg(getModeSize(mode));
|
||||
else
|
||||
str += tr("Default resolution");
|
||||
|
||||
|
@ -430,7 +430,7 @@ void AVForm::getVideoDevices()
|
|||
|
||||
int AVForm::getModeSize(VideoMode mode)
|
||||
{
|
||||
return qRound(mode.height / 120.0) ;
|
||||
return qRound(mode.height / 120.0) * 120;
|
||||
}
|
||||
|
||||
void AVForm::getAudioInDevices()
|
||||
|
|
Loading…
Reference in New Issue
Block a user