From 18d37b40a1dff05c8e75928dfdf851bf2f1acf8b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 4 Jun 2022 16:52:38 -0500 Subject: user/[KDE Frameworks]: Update to 5.94.0 Many frameworks have added or removed dependencies. Documentation builds have been fixed for new tag file dependencies. * KIO: Fix build on GCC 8. * Prison: Ensure QR and DTMX barcodes are generated properly on big-endian systems. * Syndication: New framework. --- user/prison/endian.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/prison/endian.patch (limited to 'user/prison/endian.patch') diff --git a/user/prison/endian.patch b/user/prison/endian.patch new file mode 100644 index 000000000..b812bc46e --- /dev/null +++ b/user/prison/endian.patch @@ -0,0 +1,33 @@ +We write things in byte ordering-dependent format, so use that. + +--- prison-5.94.0/src/lib/qrcodebarcode.cpp.old 2022-05-06 06:22:05.000000000 -0500 ++++ prison-5.94.0/src/lib/qrcodebarcode.cpp 2022-06-04 16:38:40.211478102 -0500 +@@ -93,7 +93,7 @@ + } + + const auto result = +- QImage(img, code->width + 2 * margin, code->width + 2 * margin, QImage::Format_ARGB32).copy(); // deep copy as we are going to delete img ++ QImage(img, code->width + 2 * margin, code->width + 2 * margin, QImage::Format_RGBA8888).copy(); // deep copy as we are going to delete img + delete[] img; + return result; + } +--- prison-5.94.0/src/lib/datamatrixbarcode.cpp.old 2022-05-06 06:22:05.000000000 -0500 ++++ prison-5.94.0/src/lib/datamatrixbarcode.cpp 2022-06-04 16:39:00.459255774 -0500 +@@ -37,7 +37,7 @@ + QImage ret; + + if (foregroundColor() == Qt::black && backgroundColor() == Qt::white) { +- QImage tmp(enc->image->pxl, enc->image->width, enc->image->height, QImage::Format_ARGB32); ++ QImage tmp(enc->image->pxl, enc->image->width, enc->image->height, QImage::Format_RGBA8888); + // we need to copy, because QImage generated from a char pointer requires the + // char pointer to be kept around forever, and manually deleted. + ret = tmp.copy(); +@@ -66,7 +66,7 @@ + img[i - 1 + j] = color[j]; + } + } +- QImage tmp(img, enc->image->width, enc->image->height, QImage::Format_ARGB32); ++ QImage tmp(img, enc->image->width, enc->image->height, QImage::Format_RGBA8888); + // we need to copy, because QImage generated from a char pointer requires the + // char pointer to be kept around forever, and manually deleted. + ret = tmp.copy(); -- cgit v1.2.3-60-g2f50