Update of /cvsroot/freevo/freevo/src/animation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26587/src/animation
Modified Files:
base.py
Log Message:
animation damage patch from Viggo Fredriksen
Index: base.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/animation/base.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** base.py 25 Apr 2004 11:23:58 -0000 1.1
--- base.py 13 May 2004 12:33:42 -0000 1.2
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.2 2004/05/13 12:33:42 dischi
+ # animation damage patch from Viggo Fredriksen
+ #
# Revision 1.1 2004/04/25 11:23:58 dischi
# Added support for animations. Most of the code is from Viggo Fredriksen
***************
*** 106,119 ****
self.updates = []
! else:
! # check for damages done on osd.screen
! while len(self.updates) > 0:
! update = self.updates.pop()
! x = update[0] - self.rect.left
! y = update[1] - self.rect.top
! bg_tmp = osd.get_singleton().getsurface(rect=update)
! self.background.blit(bg_tmp, (x, y))
self.surface.blit(self.background, (0,0))
--- 109,131 ----
self.updates = []
! elif len(self.updates) > 0:
! # find the topleft corner
! x = self.rect.right
! y = self.rect.bottom
! for i in self.updates:
! x = min(x, i.left)
! y = min(y, i.top)
! # find the total rect of the collisions
! upd = Rect(x, y, 0, 0)
! upd.unionall_ip(self.updates)
! self.updates = []
!
! x = upd[0] - self.rect.left
! y = upd[1] - self.rect.top
! bg_tmp = osd.get_singleton().getsurface(rect=upd)
!
! self.background.blit(bg_tmp, (x, y))
self.surface.blit(self.background, (0,0))
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog