Update of /cvsroot/freevo/freevo/src/video/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv26738/src/video/plugins

Modified Files:
        bmovl.py 
Log Message:
move skin font handling to osd to avoid duplicate code

Index: bmovl.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/bmovl.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** bmovl.py    11 Jan 2004 20:01:28 -0000      1.7
--- bmovl.py    11 Jan 2004 20:23:31 -0000      1.8
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.8  2004/01/11 20:23:31  dischi
+ # move skin font handling to osd to avoid duplicate code
+ #
  # Revision 1.7  2004/01/11 20:01:28  dischi
  # make bmovl work again
***************
*** 171,186 ****
          clock_width = clock_font.stringsize(clock)
  
-         shadow = None
-         border = None
-         if clock_font.shadow.visible:
-             if clock_font.shadow.border:
-                 border = clock_font.shadow.color
-             else:
-                 shadow = (clock_font.shadow.x, clock_font.shadow.y, 
clock_font.shadow.color)
-         
          self.bmovl.drawstringframed(clock, 
self.bmovl.width-config.OSD_OVERSCAN_X-10-\
                                      clock_width, config.OSD_OVERSCAN_Y+10,
!                                     clock_width, -1, clock_font.font, 
clock_font.color,
!                                     shadow=shadow, border_color=border)
  
          self.bmovl.update((0, 0, self.bmovl.width, height))
--- 174,180 ----
          clock_width = clock_font.stringsize(clock)
  
          self.bmovl.drawstringframed(clock, 
self.bmovl.width-config.OSD_OVERSCAN_X-10-\
                                      clock_width, config.OSD_OVERSCAN_Y+10,
!                                     clock_width, -1, clock_font)
  
          self.bmovl.update((0, 0, self.bmovl.width, height))
***************
*** 212,242 ****
              tagline = show[3]
          
!         font   = skin.get_singleton().get_font('title')
! 
!         shadow = None
!         border = None
!         if font.shadow.visible:
!             if font.shadow.border:
!                 border = font.shadow.color
!             else:
!                 shadow = (font.shadow.x, font.shadow.y, font.shadow.color)
!         
!         pos = self.bmovl.drawstringframed(title, x0, y0, width, -1, font.font,
!                                           font.color, shadow=shadow, 
border_color=border)
  
          if tagline:
              font = skin.get_singleton().get_font('info tagline')
! 
!             shadow = None
!             border = None
!             if font.shadow.visible:
!                 if font.shadow.border:
!                     border = font.shadow.color
!                 else:
!                     shadow = (font.shadow.x, font.shadow.y, font.shadow.color)
! 
!             self.bmovl.drawstringframed(tagline, x0, pos[1][3]+5, width, -1,
!                                         font.font, font.color,
!                                         shadow=shadow, border_color=border)
              
          self.bmovl.update((0, self.bmovl.height-height, self.bmovl.width, height))
--- 206,215 ----
              tagline = show[3]
          
!         font = skin.get_singleton().get_font('title')
!         pos  = self.bmovl.drawstringframed(title, x0, y0, width, -1, font)
  
          if tagline:
              font = skin.get_singleton().get_font('info tagline')
!             self.bmovl.drawstringframed(tagline, x0, pos[1][3]+5, width, -1, font)
              
          self.bmovl.update((0, self.bmovl.height-height, self.bmovl.width, height))




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to