Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26587/src

Modified Files:
        osd.py 
Log Message:
animation damage patch from Viggo Fredriksen

Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.155
retrieving revision 1.156
diff -C2 -d -r1.155 -r1.156
*** osd.py      9 May 2004 14:17:44 -0000       1.155
--- osd.py      13 May 2004 12:33:42 -0000      1.156
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.156  2004/05/13 12:33:42  dischi
+ # animation damage patch from Viggo Fredriksen
+ #
  # Revision 1.155  2004/05/09 14:17:44  dischi
  # do use a SynchronizedObject for the osd
***************
*** 716,732 ****
          blit the source to the screen
          """
          if self.render:
!             r = source.get_rect()
!             w = r[2]
!             h = r[3]
!             if sourcerect:
!                 w = sourcerect[2]
!                 h = sourcerect[3]
!             self.render.damage( [(destpos[0], destpos[0], w, h)] )
  
-         if sourcerect != None:
-             return self.screen.blit(source, destpos, sourcerect)
-         else:
-             return self.screen.blit(source, destpos)
  
  
--- 719,735 ----
          blit the source to the screen
          """
+         if sourcerect:
+             w = sourcerect[2]
+             h = sourcerect[3]
+             ret = self.screen.blit(source, destpos, sourcerect)
+         else:
+             w, h = source.get_size()
+             ret = self.screen.blit(source, destpos)
+ 
          if self.render:
!             self.render.damage( [(destpos[0], destpos[1], w, h)] )
! 
!         return ret
  
  
  



-------------------------------------------------------
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

Reply via email to