void-packages/srcpkgs/qtav/patches/qt5-5.15.0.patch
Đoàn Trần Công Danh 635e9da391 srcpkgs/q*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

20 lines
663 B
Diff

--- a/src/QtAV/FilterContext.h 2019-07-11 02:58:59.000000000 +0200
+++ b/src/QtAV/FilterContext.h 2020-07-25 11:16:49.931296324 +0200
@@ -26,6 +26,7 @@
#include <QtCore/QByteArray>
#include <QtCore/QRect>
#include <QtGui/QPainter>
+#include <QtGui/QPainterPath>
/*
* QPainterFilterContext, D2DFilterContext, ...
*/
--- a/qml/SGVideoNode.cpp 2019-07-11 02:58:59.000000000 +0200
+++ b/qml/SGVideoNode.cpp 2020-07-25 11:20:28.307307590 +0200
@@ -25,6 +25,7 @@
#include "QtAV/VideoFrame.h"
#include <QtCore/QScopedPointer>
#include <QtGui/QOpenGLFunctions>
+#include <QtQuick/QSGMaterial>
#include <QtQuick/QSGMaterialShader>
// all in QSGRenderThread