File: fix-pause-crash.patch

package info (click to toggle)
pangzero 1.4.1%2Bgit20121103-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,640 kB
  • sloc: perl: 4,105; makefile: 24
file content (22 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Markus Koschany <apo@debian.org>
Date: Mon, 13 Mar 2017 08:55:15 +0100
Subject: fix pause crash

Forwarded: https://github.com/kthakore/pangzero/issues/5
Bug-Debian: https://bugs.debian.org/857474
---
 lib/Games/PangZero.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/Games/PangZero.pm b/lib/Games/PangZero.pm
index e9e4dd6..7015fec 100644
--- a/lib/Games/PangZero.pm
+++ b/lib/Games/PangZero.pm
@@ -165,7 +165,6 @@ sub Pause {
 
   SDL::Video::blit_surface($pausedSurface, SDL::Rect->new(0, 0, $pausedSurface->w, $pausedSurface->h),
                            $App, SDL::Rect->new(($PhysicalScreenWidth - $pausedSurface->w) / 2, $PhysicalScreenHeight / 2 - 100, 0, 0));
-  $App->sync();
   $Keys   = ();
   $Events = ();
   while (1) { # Paused, wait for keypress