paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/widgets pgbutton.cpp,1.4,1.5


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/widgets pgbutton.cpp,1.4,1.5
Date: Sat, 27 Apr 2002 09:58:23 -0400

Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv30375/src/widgets

Modified Files:
        pgbutton.cpp 
Log Message:
fixed hidden virtual "SetTransparency"



Index: pgbutton.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgbutton.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pgbutton.cpp        27 Apr 2002 11:57:22 -0000      1.4
--- pgbutton.cpp        27 Apr 2002 13:58:20 -0000      1.5
***************
*** 483,498 ****
  
  /**  */
! void PG_Button::SetTransparency(int norm, int pressed, int high) {
!       if(norm >= 0 && norm <= 255) {
!               my_transparency[0] = norm;
!       }
  
!       if(pressed >= 0 && pressed <= 255) {
!               my_transparency[1] = pressed;
!       }
! 
!       if(high >= 0 && high <= 255) {
!               my_transparency[2] = high;
!       }
  }
  
--- 483,494 ----
  
  /**  */
! void PG_Button::SetTransparency(Uint8 norm, Uint8 pressed, Uint8 high) {
!       my_transparency[0] = norm;
!       my_transparency[1] = pressed;
!       my_transparency[2] = high;
! }
  
! void PG_Button::SetTransparency(Uint8 t) {
!       SetTransparency(t, t, t);
  }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]