From dc64af6f5eea2404c7160cbf0842996ef099e7ad Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 9 Jul 2021 08:47:31 +0200 Subject: [PATCH] Remove code for old qt version --- framebuffers/qt/qtframebuffer.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/framebuffers/qt/qtframebuffer.cpp b/framebuffers/qt/qtframebuffer.cpp index 1dd7c07..5eb49d3 100644 --- a/framebuffers/qt/qtframebuffer.cpp +++ b/framebuffers/qt/qtframebuffer.cpp @@ -26,11 +26,7 @@ QtFrameBuffer::QtFrameBuffer(WId id, QObject *parent) if (screen) { primaryScreen = screen; fbImage = screen->grabWindow(win).toImage(); -#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) fb = new char[fbImage.sizeInBytes()]; -#else - fb = new char[fbImage.byteCount()]; -#endif } else { fb = nullptr; primaryScreen = nullptr; @@ -108,11 +104,7 @@ void QtFrameBuffer::updateFrameBuffer() tiles.append(img.rect()); #endif -#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) memcpy(fb, img.bits(), static_cast(img.sizeInBytes())); -#else - memcpy(fb, img.bits(), img.byteCount()); -#endif fbImage = img; }