1. Lenard Lindstrom
  2. pygame-patches

Commits

Lenard Lindstrom  committed 10e3f4e

update commit message

  • Participants
  • Parent commits 8d1039a
  • Branches default

Comments (0)

Files changed (1)

File Issue-180

View file
  • Ignore whitespace
 # Parent c80631c9c5183e8055c74e7e9a21bafc7509ea46
 Bug fix: Segfault on surface.get_bounding_rect(). Closes Issue #180
 
-diff -r c80631c9c518 -r faa45033e2c5 src/surface.c
+Untested on a big-endian machine.
+
+diff -r c80631c9c518 src/surface.c
 --- a/src/surface.c	Sat Oct 26 16:48:49 2013 -0700
-+++ b/src/surface.c	Sun Oct 27 21:03:42 2013 -0700
++++ b/src/surface.c	Mon Oct 28 10:08:38 2013 -0700
 @@ -1988,6 +1988,15 @@
  static PyObject *
  surf_get_bounding_rect (PyObject *self, PyObject *args, PyObject *kwargs)
              if ((a >= min_alpha && has_colorkey == 0) ||
                  (has_colorkey != 0 && (r != keyr || g != keyg || b != keyb))) {
                  found_alpha = 1;
-diff -r c80631c9c518 -r faa45033e2c5 test/surface_test.py
+diff -r c80631c9c518 test/surface_test.py
 --- a/test/surface_test.py	Sat Oct 26 16:48:49 2013 -0700
-+++ b/test/surface_test.py	Sun Oct 27 21:03:42 2013 -0700
++++ b/test/surface_test.py	Mon Oct 28 10:08:38 2013 -0700
 @@ -165,6 +165,15 @@
          self.assertEqual(bound_rect.width, 31)
          self.assertEqual(bound_rect.height, 31)