diff --git a/QOpenHD.pro b/QOpenHD.pro index a5e5a2a14..51050fabc 100755 --- a/QOpenHD.pro +++ b/QOpenHD.pro @@ -72,6 +72,8 @@ QT +=core quick qml gui \ widgets QT += opengl QT += charts +#QT += gui-private +#LIBS += Ldrm INCLUDEPATH += $$PWD/lib INCLUDEPATH += $$PWD/app diff --git a/app/main.cpp b/app/main.cpp index 81d9b5313..613a11a37 100755 --- a/app/main.cpp +++ b/app/main.cpp @@ -70,6 +70,9 @@ RESOLVEFUNC(SSL_get1_peer_certificate); RESOLVEFUNC(EVP_PKEY_get_base_id); #endif // OPENSSL_VERSION_MAJOR >= 3 +//#include +//#include +//#include // Load all the fonts we use ?! static void load_fonts(){ @@ -197,6 +200,39 @@ static void android_check_permissions(){ #endif } +/*static void debug_kms(){ + qDebug()<<"platform name:"<nativeResourceForIntegration("dri_fd"); + if (drifd) + fd = static_cast(reinterpret_cast(drifd)); + auto * crtcid = pni->nativeResourceForScreen("dri_crtcid", qScreen); + if (crtcid) + crtc = static_cast(reinterpret_cast(crtcid)); + auto * connid = pni->nativeResourceForScreen("dri_connectorid", qScreen); + if (connid) + connector = static_cast(reinterpret_cast(connid)); + auto * atomic = pni->nativeResourceForIntegration("dri_atomic_request"); + if (atomic){ + //auto * request = reinterpret_cast(atomic); + auto * request = atomic; + if (request != nullptr) + useatomic = true; + } + qDebug()<