[python-sfml] 02/08: Add patch to fix sf.Rectangle.insersects
James Cowgill
jcowgill-guest at moszumanska.debian.org
Sat Mar 14 16:39:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
jcowgill-guest pushed a commit to branch master
in repository python-sfml.
commit a6ecb2a87370abf173a7ebd989aab1f18ef8bdb9
Author: James Cowgill <james410 at cowgill.org.uk>
Date: Sun Mar 8 23:10:16 2015 +0000
Add patch to fix sf.Rectangle.insersects
LP: #1400906
---
.../04_Fixed-sf.Rectangle.interesects-method.patch | 25 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/04_Fixed-sf.Rectangle.interesects-method.patch b/debian/patches/04_Fixed-sf.Rectangle.interesects-method.patch
new file mode 100644
index 0000000..64681db
--- /dev/null
+++ b/debian/patches/04_Fixed-sf.Rectangle.interesects-method.patch
@@ -0,0 +1,25 @@
+From 4fdd5c5c3e9ca9f0a3c0852910c50dfc5370649c Mon Sep 17 00:00:00 2001
+From: Jonathan De Wachter <dewachter.jonathan at gmail.com>
+Date: Sat, 25 May 2013 16:12:54 +0200
+Subject: [PATCH 1/4] Fixed sf.Rectangle.interesects() method
+
+---
+ src/sfml/graphics.pyx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/sfml/graphics.pyx b/src/sfml/graphics.pyx
+index 51e897c..68acb16 100644
+--- a/src/sfml/graphics.pyx
++++ b/src/sfml/graphics.pyx
+@@ -185,7 +185,7 @@ cdef public class Rectangle [type PyRectangleType, object PyRectangleObject]:
+ def intersects(self, rectangle):
+ # make sure the rectangle is a rectangle (to get its right/bottom border)
+ l, t, w, h = rectangle
+- rectangle = Rectangle(l, t, w, h)
++ rectangle = Rectangle((l, t), (w, h))
+
+ # compute the intersection boundaries
+ left = max(self.left, rectangle.left)
+--
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 5867908..1db649f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
01_spelling-length.patch
02_disable-cython-headers.patch
03_disable-intersphinx.patch
+04_Fixed-sf.Rectangle.interesects-method.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/python-sfml.git
More information about the Pkg-games-commits
mailing list