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

Modified Files:
        osd.py 
Log Message:
check osd init before drawstringframed

Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.157
retrieving revision 1.158
diff -C2 -d -r1.157 -r1.158
*** osd.py      31 May 2004 10:41:44 -0000      1.157
--- osd.py      6 Jun 2004 06:32:33 -0000       1.158
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.158  2004/06/06 06:32:33  dischi
+ # check osd init before drawstringframed
+ #
  # Revision 1.157  2004/05/31 10:41:44  dischi
  # remove sleep function, not needed anymore
***************
*** 68,80 ****
  import plugin
  
! # The PyGame Python SDL interface.
! import pygame
! from pygame.locals import *
  
  from mmpython.image import EXIF as exif
  import cStringIO
          
- # import animations
- import animation
  
  
--- 71,85 ----
  import plugin
  
! if __freevo_app__ == 'main':
!     # The PyGame Python SDL interface.
!     import pygame
!     from pygame.locals import *
! 
!     # import animations
!     import animation
  
  from mmpython.image import EXIF as exif
  import cStringIO
          
  
  
***************
*** 875,878 ****
--- 880,886 ----
          font if set to None when calling this function.
          """
+         if not pygame.display.get_init():
+             return '', (x,y,x,y)
+ 
          if not string:
              return '', (x,y,x,y)



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to