pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/KoboDeluxe Fix immediate eternal pause



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46200a702124
branches:  trunk
changeset: 340805:46200a702124
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Oct 08 16:13:12 2019 +0000

description:
Fix immediate eternal pause

diffstat:

 games/KoboDeluxe/distinfo               |   3 ++-
 games/KoboDeluxe/patches/patch-kobo.cpp |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r f54d967876c9 -r 46200a702124 games/KoboDeluxe/distinfo
--- a/games/KoboDeluxe/distinfo Tue Oct 08 14:56:28 2019 +0000
+++ b/games/KoboDeluxe/distinfo Tue Oct 08 16:13:12 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/03 20:56:42 agc Exp $
+$NetBSD: distinfo,v 1.8 2019/10/08 16:13:12 ryoon Exp $
 
 SHA1 (KoboDeluxe-0.5.1.tar.bz2) = bc49dbbae562baffd312444b373c7ebbf5e233c6
 RMD160 (KoboDeluxe-0.5.1.tar.bz2) = b196054f2220fe1b479a490723b1f5da4e74aa1f
@@ -6,3 +6,4 @@
 Size (KoboDeluxe-0.5.1.tar.bz2) = 1781752 bytes
 SHA1 (patch-enemies.h) = a3e9fb60581d7a7bcb079ceda5d1271f923470cd
 SHA1 (patch-enemy.cpp) = dbec6a60bb6a26cac66498584b3f100c6acd5f21
+SHA1 (patch-kobo.cpp) = 958b9b40caee7dc3d67edbe3b834eed5f2af6beb
diff -r f54d967876c9 -r 46200a702124 games/KoboDeluxe/patches/patch-kobo.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/KoboDeluxe/patches/patch-kobo.cpp   Tue Oct 08 16:13:12 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-kobo.cpp,v 1.1 2019/10/08 16:13:12 ryoon Exp $
+
+* Fix immediate pause
+  From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909244
+
+--- kobo.cpp.orig      2007-12-24 05:59:02.000000000 +0000
++++ kobo.cpp
+@@ -1691,7 +1691,7 @@ void kobo_gfxengine_t::frame()
+                       break;
+                 case SDL_ACTIVEEVENT:
+                       // Any type of focus loss should activate pause mode!
+-                      if(!ev.active.gain)
++                      if(!ev.active.gain && ev.active.state != SDL_APPINPUTFOCUS)
+                               km.pause_game();
+                       break;
+                 case SDL_QUIT:



Home | Main Index | Thread Index | Old Index