Update of /cvsroot/freevo/freevo/skins/dischi1
In directory sc8-pr-cvs1:/tmp/cvs-serv9216

Modified Files:
        area.py 
Log Message:
faster now

Index: area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/area.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** area.py     19 Mar 2003 11:00:22 -0000      1.26
--- area.py     20 Mar 2003 15:44:59 -0000      1.27
***************
*** 28,31 ****
--- 28,34 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.27  2003/03/20 15:44:59  dischi
+ # faster now
+ #
  # Revision 1.26  2003/03/19 11:00:22  dischi
  # cache images inside the area and some bugfixes to speed up things
***************
*** 385,396 ****
          c_rect  = [ osd.width, osd.height, 0, 0 ]
  
-         # FIXME: make this simpler:
-         
          for b in self.bg_objects:
!             if not b in self.last_bg_objects:
                  bg_rect[0] = min(bg_rect[0], b[1])
                  bg_rect[1] = min(bg_rect[1], b[2])
                  bg_rect[2] = max(bg_rect[2], b[1] + b[3])
                  bg_rect[3] = max(bg_rect[3], b[2] + b[4])
          for b in self.last_bg_objects:
              if not b in self.bg_objects:
--- 388,400 ----
          c_rect  = [ osd.width, osd.height, 0, 0 ]
  
          for b in self.bg_objects:
!             try:
!                 self.last_bg_objects.remove(b)
!             except ValueError:
                  bg_rect[0] = min(bg_rect[0], b[1])
                  bg_rect[1] = min(bg_rect[1], b[2])
                  bg_rect[2] = max(bg_rect[2], b[1] + b[3])
                  bg_rect[3] = max(bg_rect[3], b[2] + b[4])
+                 
          for b in self.last_bg_objects:
              if not b in self.bg_objects:
***************
*** 401,405 ****
  
          for b in self.content_objects:
!             if not b in self.last_content_objects:
                  if b[0] == 'rectangle':
                      bg_rect[0] = min(bg_rect[0], b[1])
--- 405,411 ----
  
          for b in self.content_objects:
!             try:
!                 self.last_content_objects.remove(b)
!             except ValueError:
                  if b[0] == 'rectangle':
                      bg_rect[0] = min(bg_rect[0], b[1])




-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to