fix a bug with crash when calling resizeBuffers

This commit is contained in:
rdb 2011-12-27 09:48:01 +00:00
parent aa91bf071e
commit 6b3c53e115
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class FilterManager(DirectObject):
self.nextsort = self.win.getSort() - 1000
self.basex = 0
self.basey = 0
self.accept("window-event", self.resizeBuffers)
self.accept("window-event", self.windowEvent)
def getClears(self,region):
@ -308,7 +308,7 @@ class FilterManager(DirectObject):
""" When the window changes size, automatically resize all buffers """
self.resizeBuffers()
def resizeBuffers(self, win):
def resizeBuffers(self):
""" Resize all buffers to match the size of the window. """
for i in range(len(self.buffers)):
(mul, div, align) = self.sizes[i]