summarylogtreecommitdiffstats
path: root/imagewriter.patch
diff options
context:
space:
mode:
authorJosip Ponjavic2018-04-04 20:27:01 +0200
committerJosip Ponjavic2018-04-04 20:27:01 +0200
commit69ec2e6f7faed16f159a29ce8181be18457861b5 (patch)
tree0cb0a1efd03069e705129b110e37833a70d773a4 /imagewriter.patch
parentf505ae37d62d30cf055a0bba592ed14646f593e5 (diff)
downloadaur-69ec2e6f7faed16f159a29ce8181be18457861b5.tar.gz
upgpkg: 0.7-3 fix build
Diffstat (limited to 'imagewriter.patch')
-rw-r--r--imagewriter.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/imagewriter.patch b/imagewriter.patch
new file mode 100644
index 000000000000..5d249293cba1
--- /dev/null
+++ b/imagewriter.patch
@@ -0,0 +1,39 @@
+diff -ruN "a/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp" "b/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp"
+--- "a/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp" 2016-05-29 20:37:24.000000000 +0200
++++ "b/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp" 2018-04-04 20:10:22.937314418 +0200
+@@ -62,7 +62,7 @@
+ if (q1.exists()){
+ QImage matteImage(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/ffmpegthumbs-mattepaint/quadrant1");
+ QPainter painter(&image);
+- if ((image.height() <= 128) and (image.width() <= 128)) {
++ if ((image.height() <= 128) && (image.width() <= 128)) {
+ painter.drawImage( 0, 0, matteImage.scaled(128, 128, Qt::KeepAspectRatio, Qt::FastTransformation));
+ } else {
+ painter.drawImage( 0, 0, matteImage);
+@@ -73,7 +73,7 @@
+ QImage matteImage(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/ffmpegthumbs-mattepaint/quadrant2");
+ mirror = image.mirrored(true, false);
+ QPainter painter(&mirror);
+- if ((image.height() <= 128) and (image.width() <= 128)) {
++ if ((image.height() <= 128) && (image.width() <= 128)) {
+ painter.drawImage( 0, 0, matteImage.scaled(128, 128, Qt::KeepAspectRatio, Qt::FastTransformation));
+ } else {
+ painter.drawImage( 0, 0, matteImage);
+@@ -85,7 +85,7 @@
+ QImage matteImage(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/ffmpegthumbs-mattepaint/quadrant3");
+ mirror = image.mirrored(false, true);
+ QPainter painter(&mirror);
+- if ((image.height() <= 128) and (image.width() <= 128)) {
++ if ((image.height() <= 128) && (image.width() <= 128)) {
+ painter.drawImage( 0, 0, matteImage.scaled(128, 128, Qt::KeepAspectRatio, Qt::FastTransformation));
+ } else {
+ painter.drawImage( 0, 0, matteImage);
+@@ -97,7 +97,7 @@
+ QImage matteImage(QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/ffmpegthumbs-mattepaint/quadrant4");
+ mirror = image.mirrored(true, true);
+ QPainter painter(&mirror);
+- if ((image.height() <= 128) and (image.width() <= 128)) {
++ if ((image.height() <= 128) && (image.width() <= 128)) {
+ painter.drawImage( 0, 0, matteImage.scaled(128, 128, Qt::KeepAspectRatio, Qt::FastTransformation));
+ } else {
+ painter.drawImage( 0, 0, matteImage);