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

Modified Files:
        area.py 
Log Message:
only draw images when needed

Index: area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/area.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** area.py     20 Mar 2003 18:55:45 -0000      1.28
--- area.py     21 Mar 2003 19:44:44 -0000      1.29
***************
*** 28,31 ****
--- 28,34 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.29  2003/03/21 19:44:44  dischi
+ # only draw images when needed
+ #
  # Revision 1.28  2003/03/20 18:55:45  dischi
  # Correct the rectangle drawing
***************
*** 236,240 ****
                      # for x0, y0, x1, y1 in self.updatelist['background']:
                      # self.s_bg.blit(o[1], (x0, y0), (x0-o[2], y0-o[3], x1-x0, 
y1-y0))
!                     self.s_bg.blit(o[1], o[2:])
  
                  elif o[0] == 'rectangle':
--- 239,245 ----
                      # for x0, y0, x1, y1 in self.updatelist['background']:
                      # self.s_bg.blit(o[1], (x0, y0), (x0-o[2], y0-o[3], x1-x0, 
y1-y0))
!                     if self.in_update(o[2], o[3], o[2]+o[4], o[3]+o[5],
!                                       self.updatelist['background']):
!                         self.s_bg.blit(o[1], o[2:4])
  
                  elif o[0] == 'rectangle':
***************
*** 264,268 ****
              for o in self.drawlist['content']:
                  if o[0] == 'image':
!                     osd.screen.blit(o[1], o[2:])
  
                  elif o[0] == 'text':
--- 269,276 ----
              for o in self.drawlist['content']:
                  if o[0] == 'image':
!                     if self.in_update(o[2], o[3], o[2]+o[4], o[3]+o[5],
!                                       self.updatelist['background'] + \
!                                       self.updatelist['content']):
!                         osd.screen.blit(o[1], o[2:4])
  
                  elif o[0] == 'text':
***************
*** 725,729 ****
          """
          if isinstance(val, tuple):
!             self.screen.draw('content', ('image', image, val[0], val[1]))
              self.content_objects += [ ( 'image', val[0], val[1], image.get_width(),
                                        image.get_height(), image ) ]
--- 733,738 ----
          """
          if isinstance(val, tuple):
!             self.screen.draw('content', ('image', image, val[0], val[1], 
image.get_width(),
!                                          image.get_height()))
              self.content_objects += [ ( 'image', val[0], val[1], image.get_width(),
                                        image.get_height(), image ) ]
***************
*** 731,737 ****
          
          elif hasattr(val, 'label') and val.label == 'background':
!             self.screen.draw('background', ('image', image, val.x, val.y))
          else:
!             self.screen.draw('content', ('image', image, val.x, val.y))
  
          self.content_objects += [ ( 'image', val.x, val.y, val.width,
--- 740,748 ----
          
          elif hasattr(val, 'label') and val.label == 'background':
!             self.screen.draw('background', ('image', image, val.x, val.y, val.width,
!                                             val.height))
          else:
!             self.screen.draw('content', ('image', image, val.x, val.y, val.width,
!                                          val.height))
  
          self.content_objects += [ ( 'image', val.x, val.y, val.width,




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to