mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
Uncheck OpenGL display when requirements aren't met
Also disable the vsync interval label to match other part of the UX
This commit is contained in:
parent
4f6679b821
commit
d34aed7ccd
@ -59,6 +59,7 @@ void VideoSettingsDialog::setEnabled()
|
|||||||
ogldisplay = false;
|
ogldisplay = false;
|
||||||
|
|
||||||
ui->rb3DOpenGL->setEnabled(false);
|
ui->rb3DOpenGL->setEnabled(false);
|
||||||
|
ui->cbGLDisplay->setChecked(false);
|
||||||
ui->rb3DSoftware->setChecked(true);
|
ui->rb3DSoftware->setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,6 +218,7 @@ void VideoSettingsDialog::on_VideoSettingsDialog_rejected()
|
|||||||
|
|
||||||
void VideoSettingsDialog::setVsyncControlEnable(bool hasOGL)
|
void VideoSettingsDialog::setVsyncControlEnable(bool hasOGL)
|
||||||
{
|
{
|
||||||
|
ui->label_2->setEnabled(hasOGL);
|
||||||
ui->cbVSync->setEnabled(hasOGL);
|
ui->cbVSync->setEnabled(hasOGL);
|
||||||
ui->sbVSyncInterval->setEnabled(hasOGL);
|
ui->sbVSyncInterval->setEnabled(hasOGL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user