Fix QT6 windows

Fix QT6
This commit is contained in:
Andy Vandijck 2024-02-20 21:16:56 +01:00
parent 568b27cfd7
commit a8f3e79e2a
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@
#include "Qt/ConsoleVideoConf.h"
#include "Qt/nes_shm.h"
#ifdef WIN32
#if defined(WIN32) && (QT_VERSION_MAJOR < 6)
#include <QtPlatformHeaders/QWindowsWindowFunctions>
#endif
@ -132,7 +132,7 @@ ConsoleVideoConfDialog_t::ConsoleVideoConfDialog_t(QWidget *parent)
vbox1->addWidget( gl_LF_chkBox );
#ifdef WIN32
#if defined(WIN32) && (QT_VERSION_MAJOR < 6)
// 1px full screen border - hack fix for QOpenGLWidget fullscreen issues
winFullScreenBorderCbx = new QCheckBox( tr("Fullscreen Border (1px)") );
winFullScreenBorderCbx->setToolTip(tr("Hack fix for QOpenGLWidget fullscreen issue. May not be needed."));
@ -736,7 +736,7 @@ void ConsoleVideoConfDialog_t::openGL_linearFilterChanged( int value )
}
}
//----------------------------------------------------
#ifdef WIN32
#if defined(WIN32) && (QT_VERSION_MAJOR < 6)
void ConsoleVideoConfDialog_t::winFullScreenBorderChanged(int value)
{
bool opt = (value != Qt::Unchecked);