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

Modified Files:
        tiny_osd.py 
Log Message:
add border support

Index: tiny_osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/tiny_osd.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** tiny_osd.py 1 Jan 2004 17:41:42 -0000       1.6
--- tiny_osd.py 2 Jan 2004 10:26:07 -0000       1.7
***************
*** 16,19 ****
--- 16,22 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.7  2004/01/02 10:26:07  dischi
+ # add border support
+ #
  # Revision 1.6  2004/01/01 17:41:42  dischi
  # call correct stringsize function
***************
*** 110,118 ****
              y = config.OSD_OVERSCAN_Y
  
              renderer.drawstringframed(self.message, config.OSD_OVERSCAN_X,
                                        config.OSD_OVERSCAN_Y + 10,
!                                       renderer.width - 2 * config.OSD_OVERSCAN_X, -1,
!                                       font.font, fgcolor=0xffffff, 
bgcolor=0xa0000000,
!                                       align_h='right', mode='hard')
  
          else:
--- 113,125 ----
              y = config.OSD_OVERSCAN_Y
  
+             border = None
+             if font.shadow.visible and font.shadow.border:
+                 border = font.shadow.color
+                 
              renderer.drawstringframed(self.message, config.OSD_OVERSCAN_X,
                                        config.OSD_OVERSCAN_Y + 10,
!                                       renderer.width - 10 - 2 * 
config.OSD_OVERSCAN_X, -1,
!                                       font.font, fgcolor=font.color,
!                                       align_h='right', mode='hard', 
border_color=border)
  
          else:
***************
*** 121,125 ****
                  y += 60
  
!             renderer.write_text(self.message, font, None,
                                  (renderer.x + renderer.width-w - 10), y,
                                  w, -1, 'right', 'center')
--- 128,132 ----
                  y += 60
  
!             renderer.drawstring(self.message, font, None,
                                  (renderer.x + renderer.width-w - 10), y,
                                  w, -1, 'right', 'center')




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to