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

Modified Files:
        osd.py 
Log Message:
backup screen before osd shutdown

Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.123
retrieving revision 1.124
diff -C2 -d -r1.123 -r1.124
*** osd.py      12 Jan 2004 19:10:35 -0000      1.123
--- osd.py      13 Jan 2004 19:11:19 -0000      1.124
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.124  2004/01/13 19:11:19  dischi
+ # backup screen before osd shutdown
+ #
  # Revision 1.123  2004/01/12 19:10:35  dischi
  # support spaces inside a string after a \n
***************
*** 533,536 ****
--- 536,542 ----
          stop the display to give other apps the right to use it
          """
+         # backup the screen
+         self.__stop_screen__ = pygame.Surface((self.width, self.height))
+         self.__stop_screen__.blit(self.screen, (0,0))
          pygame.display.quit()
  
***************
*** 541,548 ****
          """
          pygame.display.init()
!         self.width = config.CONF.width
          self.height = config.CONF.height
          self.screen = pygame.display.set_mode((self.width, self.height), self.hw,
                                                self.depth)
          # We need to go back to fullscreen mode if that was the mode before the 
shutdown
          if self.fullscreen:
--- 547,558 ----
          """
          pygame.display.init()
!         self.width  = config.CONF.width
          self.height = config.CONF.height
          self.screen = pygame.display.set_mode((self.width, self.height), self.hw,
                                                self.depth)
+         if hasattr(self, '__stop_screen__'):
+             self.screen.blit(self.__stop_screen__, (0,0))
+             del self.__stop_screen__
+             
          # We need to go back to fullscreen mode if that was the mode before the 
shutdown
          if self.fullscreen:




-------------------------------------------------------
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