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

Modified Files:
        LetterBox.py 
Log Message:
Just a quick fix to take care of redrawing when changing the letter and still
seeing the previous letter though the alpha.  I will have to come up with
a better solution (probably using a bg_surface or something) when I hook
this object up to the skin properties because if the non-selected bg_color
has a transparency it will still be broken.


Index: LetterBox.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/LetterBox.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** LetterBox.py        5 Mar 2003 03:53:34 -0000       1.2
--- LetterBox.py        7 Mar 2003 00:19:58 -0000       1.3
***************
*** 10,13 ****
--- 10,20 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.3  2003/03/07 00:19:58  rshortt
+ # Just a quick fix to take care of redrawing when changing the letter and still
+ # seeing the previous letter though the alpha.  I will have to come up with
+ # a better solution (probably using a bg_surface or something) when I hook
+ # this object up to the skin properties because if the non-selected bg_color
+ # has a transparency it will still be broken.
+ #
  # Revision 1.2  2003/03/05 03:53:34  rshortt
  # More work hooking skin properties into the GUI objects, and also making
***************
*** 192,205 ****
              raise TypeError, 'Not all needed variables set.'
  
          if self.selected:
              c = self.selected_color.get_color_sdl()
              a = self.selected_color.get_alpha()
!         else:
!             c = self.bg_color.get_color_sdl()
!             a = self.bg_color.get_alpha()
  
-         box = pygame.Surface(self.get_size(), 0, 32)
-         box.fill(c)
-         box.set_alpha(a)
  
          self.osd.screen.blit(box, self.get_position())
--- 199,216 ----
              raise TypeError, 'Not all needed variables set.'
  
+         box = pygame.Surface(self.get_size(), 0, 32)
+         c = self.bg_color.get_color_sdl()
+         a = self.bg_color.get_alpha()
+         box.fill(c)
+         box.set_alpha(a)
+ 
          if self.selected:
+             sel_box = pygame.Surface(self.get_size(), 0, 32)
              c = self.selected_color.get_color_sdl()
              a = self.selected_color.get_alpha()
!             sel_box.fill(c)
!             sel_box.set_alpha(a)
!             box.blit(sel_box, (0,0))
  
  
          self.osd.screen.blit(box, self.get_position())




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to