Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
fix qt5 build
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Aug 17, 2023
1 parent 4f7919e commit c85c6d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,16 @@ bool Utils::isWindowAccelerated(const QWindow *window)
switch (window->surfaceType()) {
case QSurface::RasterGLSurface:
#ifdef FRAMELESSHELPER_CORE_NO_PRIVATE
return false;
#else
return true;
#else // !FRAMELESSHELPER_CORE_NO_PRIVATE
return qt_window_private(const_cast<QWindow *>(window))->compositing;
#endif
#endif // FRAMELESSHELPER_CORE_NO_PRIVATE
case QSurface::OpenGLSurface:
case QSurface::VulkanSurface:
case QSurface::MetalSurface:
#if (QT_VERSION >= QT_VERSION_CHECK(6, 1, 0))
case QSurface::Direct3DSurface:
#endif // (QT_VERSION >= QT_VERSION_CHECK(6, 1, 0))
return true;
default:
break;
Expand Down

0 comments on commit c85c6d6

Please sign in to comment.