1
0
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:
Diadlo 2016-07-24 00:50:10 +03:00
parent 6e1ef70651
commit c2e3358dd2
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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()); 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) if (mode.height && mode.width)
str += QString("%1p").arg(mode.height); str += QString("%1p").arg(getModeSize(mode));
else else
str += tr("Default resolution"); str += tr("Default resolution");
@ -430,7 +430,7 @@ void AVForm::getVideoDevices()
int AVForm::getModeSize(VideoMode mode) int AVForm::getModeSize(VideoMode mode)
{ {
return qRound(mode.height / 120.0) ; return qRound(mode.height / 120.0) * 120;
} }
void AVForm::getAudioInDevices() void AVForm::getAudioInDevices()