Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Enable fast-qimage-transfer in Qt when our patches are available
Dmitry Kazakov29e169bbda0b
diff --git a/krita/main.cc b/krita/main.ccindex 80d8f8c66d..574276863f 100644--- a/krita/main.cc+++ b/krita/main.cc@@ -50,6 +50,7 @@#include "KisUiFont.h"#include "input/KisQtWidgetsTweaker.h"#include "kis_splash_screen.h"+#include "config-qt-patches-present.h"#ifdef Q_OS_ANDROID#include <QtAndroid>@@ -439,6 +440,10 @@ extern "C" MAIN_EXPORT int MAIN_FN(int argc, char **argv)qputenv("QSG_RHI_BACKEND", "opengl");#endif+#if KRITA_QT_HAS_UPDATE_COMPRESSION_PATCH+ qputenv("QT_BACKING_STORE_USE_FAST_QIMAGE_TRANSFER", "1");+#endif+#ifdef Q_OS_WIN// HACK: https://bugs.kde.org/show_bug.cgi?id=390651resetRotation();