UI: Don't offer current resolution in auto config if < 240p
Fixes #3612.
This commit is contained in:
parent
b2ff22a587
commit
e93ad13529
1 changed files with 6 additions and 2 deletions
|
|
@ -150,8 +150,12 @@ AutoConfigVideoPage::AutoConfigVideoPage(QWidget *parent)
|
|||
QString cyStr = QString::number(ovi.base_height);
|
||||
|
||||
int encRes = int(ovi.base_width << 16) | int(ovi.base_height);
|
||||
ui->canvasRes->addItem(QTStr(RES_USE_CURRENT).arg(cxStr, cyStr),
|
||||
(int)encRes);
|
||||
|
||||
// Auto config only supports testing down to 240p, don't allow current
|
||||
// resolution if it's lower than that.
|
||||
if (ovi.base_height >= 240)
|
||||
ui->canvasRes->addItem(QTStr(RES_USE_CURRENT).arg(cxStr, cyStr),
|
||||
(int)encRes);
|
||||
|
||||
QList<QScreen *> screens = QGuiApplication::screens();
|
||||
for (int i = 0; i < screens.size(); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue