aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Julien CORJON <corjon.j@ecagroup.com>2015-07-22 10:33:32 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-22 11:04:01 +0200
commit1ffbcceea9148afe835d41435e4df7a7e2b2e35e (patch)
tree14cb1ddd8f9dae3a7a8067f0a9e3648abc830f1f /package
parented7a55c4ef0f36289bdd94f722c88b3cc715afa7 (diff)
downloadbuildroot-1ffbcceea9148afe835d41435e4df7a7e2b2e35e.tar.gz
buildroot-1ffbcceea9148afe835d41435e4df7a7e2b2e35e.tar.bz2
qt/qt5base: Fix big endian image conversion
Signed-off-by: Julien Corjon <corjon.j@ecagroup.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/qt5/qt5base/0007-big_endian-fix_destformat.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/qt5/qt5base/0007-big_endian-fix_destformat.patch b/package/qt5/qt5base/0007-big_endian-fix_destformat.patch
new file mode 100644
index 0000000000..b30d22003a
--- /dev/null
+++ b/package/qt5/qt5base/0007-big_endian-fix_destformat.patch
@@ -0,0 +1,34 @@
+From 02ab210ea9bc5ee53fa4f1db2f068ce24272a6cd Mon Sep 17 00:00:00 2001
+From: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
+Date: Fri, 3 Jul 2015 14:19:02 +0200
+Subject: [PATCH] Fix compile error on big endian
+
+DestFormat is not defined here but should be Format_RGBX8888
+
+Change-Id: Ie33989a6fc31650434281a6b7b0f4806524268af
+Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
+Reviewed-by: Timo Jyrinki <timo.jyrinki@canonical.com>
+Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
+
+Upstream-Status: https://codereview.qt-project.org/#/c/120654/
+Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
+---
+ src/gui/image/qimage_conversions.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gui/image/qimage_conversions.cpp b/src/gui/image/qimage_conversions.cpp
+index e0ca2c5..02f32aa 100644
+--- a/src/gui/image/qimage_conversions.cpp
++++ b/src/gui/image/qimage_conversions.cpp
+@@ -1103,7 +1103,7 @@ static bool mask_alpha_converter_rgbx_inplace(QImageData *data, Qt::ImageConvers
+ }
+ rgb_data += pad;
+ }
+- data->format = DestFormat;
++ data->format = QImage::Format_RGBX8888;
+ return true;
+ #endif
+ }
+--
+2.1.0
+