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

Modified Files:
        mplayervis.py 
Log Message:
view area patch from viggo

Index: mplayervis.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/mplayervis.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mplayervis.py       25 Apr 2004 15:15:08 -0000      1.2
--- mplayervis.py       2 May 2004 08:04:42 -0000       1.3
***************
*** 116,121 ****
              self.coversurf = transform.scale(image.load(self.coverfile),
                                               (self.rect.width, self.rect.height))
-         self.max_blend = 250
  
          self.c_timer = time.time()
  
--- 116,121 ----
              self.coversurf = transform.scale(image.load(self.coverfile),
                                               (self.rect.width, self.rect.height))
  
+         self.max_blend = 250
          self.c_timer = time.time()
  
***************
*** 137,141 ****
          """
  
!         if self.next_update < current_time:# and not self.wait:
  
              self.next_update = current_time + self.interval
--- 137,141 ----
          """
  
!         if self.next_update < current_time:
  
              self.next_update = current_time + self.interval
***************
*** 217,221 ****
          eventhandler to simulate hide/show of mpav
          """
!         if self.visual and self.player and self.player.playerGUI.visible:
              if event == TOGGLE_OSD and self.view in [0, 1]:
                  if self.view == 1:
--- 217,221 ----
          eventhandler to simulate hide/show of mpav
          """
!         if self.visual:
              if event == TOGGLE_OSD and self.view in [0, 1]:
                  if self.view == 1:
***************
*** 271,280 ****
  
          # get the rect from skin
          imgarea = skin.areas['view']
          c = imgarea.calc_geometry(imgarea.layout.content, copy_object=True)
!         w = c.width  - 2*c.spacing
!         h = c.height - 2*c.spacing
!         x = c.x - c.spacing
!         y = c.y - c.spacing
  
          if self.view == 1:
--- 271,293 ----
  
          # get the rect from skin
+         #  XXX someone with better knowlegde of the
+         #      skin code should take a look at this
          imgarea = skin.areas['view']
          c = imgarea.calc_geometry(imgarea.layout.content, copy_object=True)
!         w = c.width   - 2*c.spacing
!         h = c.height  - 2*c.spacing
!         x = c.x + c.spacing
!         y = c.y + c.spacing
! 
!         # check if the view-area has a rectangle
!         try:
!             r = c.types['default'].rectangle
!             x -= r.x
!             y -= r.y
!             w += 2*r.x
!             h += 2*r.y
!         except:
!             pass
! 
  
          if self.view == 1:



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to