mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
UI: Don't offer current resolution in auto config if < 240p
Fixes #3612.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user