diff options
author | ryoon <ryoon@pkgsrc.org> | 2019-10-08 16:13:12 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2019-10-08 16:13:12 +0000 |
commit | 87747ec867168ca429f61d71f03b1b7fa0438e75 (patch) | |
tree | 1decca430b0dede05d124cb9c58940f4cdc144dc /games/KoboDeluxe/patches | |
parent | fc8bad6aedbfe2880844bb73dc8b513061db1135 (diff) | |
download | pkgsrc-87747ec867168ca429f61d71f03b1b7fa0438e75.tar.gz |
Fix immediate eternal pause
Diffstat (limited to 'games/KoboDeluxe/patches')
-rw-r--r-- | games/KoboDeluxe/patches/patch-kobo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/games/KoboDeluxe/patches/patch-kobo.cpp b/games/KoboDeluxe/patches/patch-kobo.cpp new file mode 100644 index 00000000000..4fa57aff937 --- /dev/null +++ b/games/KoboDeluxe/patches/patch-kobo.cpp @@ -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: |