Fixed all the vid_api checks in the QT code.

This commit is contained in:
OBattler
2025-06-29 00:35:38 +02:00
parent dcfd1026c2
commit c15f6d757c
3 changed files with 7 additions and 29 deletions

View File

@@ -429,7 +429,7 @@ MainWindow::MainWindow(QWidget *parent)
}
#ifndef USE_VNC
if (vid_api == 5)
if (vid_api == 3)
vid_api = 0;
ui->actionVNC->setVisible(false);
#endif
@@ -450,7 +450,7 @@ MainWindow::MainWindow(QWidget *parent)
if (!vulkanAvailable)
#endif
{
if (vid_api == 4)
if (vid_api == 2)
vid_api = 0;
ui->actionVulkan->setVisible(false);
}
@@ -465,7 +465,7 @@ MainWindow::MainWindow(QWidget *parent)
connect(actGroup, &QActionGroup::triggered, [this](QAction *action) {
vid_api = action->property("vid_api").toInt();
#ifdef USE_VNC
if (vnc_enabled && vid_api != 5) {
if (vnc_enabled && vid_api != 3) {
startblit();
vnc_enabled = 0;
vnc_close();