pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/mgba mgba: add missing patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c5c7ed6c8311
branches:  trunk
changeset: 451977:c5c7ed6c8311
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue May 04 14:19:17 2021 +0000

description:
mgba: add missing patch

diffstat:

 emulators/mgba/distinfo                                          |   3 +-
 emulators/mgba/patches/patch-src_platform_qt_InputController.cpp |  22 ++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 7f611811cb04 -r c5c7ed6c8311 emulators/mgba/distinfo
--- a/emulators/mgba/distinfo   Tue May 04 14:18:06 2021 +0000
+++ b/emulators/mgba/distinfo   Tue May 04 14:19:17 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2021/05/02 08:39:59 nia Exp $
+$NetBSD: distinfo,v 1.12 2021/05/04 14:19:17 nia Exp $
 
 SHA1 (mgba-0.9.1.tar.gz) = 78c13b21dfef0d7954a8d2ee7a4725a84fd6b0bf
 RMD160 (mgba-0.9.1.tar.gz) = 218379534fd8562eb7a97cc48b3c20429f6557df
@@ -7,3 +7,4 @@
 SHA1 (patch-CMakeLists.txt) = e4bb18352c0d5602084c0674c1b5d6c3cd84b9bc
 SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0
 SHA1 (patch-include_mgba-util_platform_posix_threading.h) = deabb02eda72a4682ad84f263982eb6f8db4699b
+SHA1 (patch-src_platform_qt_InputController.cpp) = 9297dbd0f8ef92f66d89caa77fe6dc03bb60e1cb
diff -r 7f611811cb04 -r c5c7ed6c8311 emulators/mgba/patches/patch-src_platform_qt_InputController.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mgba/patches/patch-src_platform_qt_InputController.cpp  Tue May 04 14:19:17 2021 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_platform_qt_InputController.cpp,v 1.1 2021/05/04 14:19:17 nia Exp $
+
+Fix building without Qt5Multimedia.
+
+--- src/platform/qt/InputController.cpp.orig   2021-04-19 04:47:22.000000000 +0000
++++ src/platform/qt/InputController.cpp
+@@ -94,7 +94,6 @@ InputController::InputController(int pla
+               InputControllerImage* image = static_cast<InputControllerImage*>(context);
+               image->w = w;
+               image->h = h;
+-              image->p->m_cameraActive = true;
+               if (image->image.isNull()) {
+                       image->image.load(":/res/no-cam.png");
+               }
+@@ -103,6 +102,7 @@ InputController::InputController(int pla
+               if (!camera.isNull()) {
+                       image->p->m_cameraDevice = camera;
+               }
++              image->p->m_cameraActive = true;
+               QMetaObject::invokeMethod(image->p, "setupCam");
+ #endif
+       };



Home | Main Index | Thread Index | Old Index