# HG changeset patch # User Neil Muller # Date 1359380782 -7200 # Node ID 8b4a0aad8aeb28daa0f88cc765cb1711c9c04c8b # Parent beac13c4e98210b9a51ccd31cb946568baf8870b Remove unneeded rect union code diff -r beac13c4e982 -r 8b4a0aad8aeb pyntnclick/scenewidgets.py --- a/pyntnclick/scenewidgets.py Sun Jan 27 22:20:40 2013 +0200 +++ b/pyntnclick/scenewidgets.py Mon Jan 28 15:46:22 2013 +0200 @@ -55,13 +55,8 @@ class InteractRectUnion(Interact): def __init__(self, rect_list): - # pygame.rect.Rect.unionall should do this, but is broken - # in some pygame versions (including 1.8, it appears) + super(InteractRectUnion, self).__init__(None, None, None) rect_list = [Rect(x) for x in rect_list] - union_rect = rect_list[0] - for rect in rect_list[1:]: - union_rect = union_rect.union(rect) - super(InteractRectUnion, self).__init__(None, None, union_rect) self.interact_rect = rect_list