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.3,1.3.2.1


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/widgets pgbutton.cpp,1.3,1.3.2.1
Date: Wed, 17 Apr 2002 03:25:09 -0400

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

Modified Files:
      Tag: devel-1-1
        pgbutton.cpp 
Log Message:
fixed hidden virtual PG_Widget::SetTransparency function

Submitted by: Ian McCulloch <address@hidden>



Index: pgbutton.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgbutton.cpp,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -r1.3 -r1.3.2.1
*** pgbutton.cpp        15 Apr 2002 13:35:36 -0000      1.3
--- pgbutton.cpp        17 Apr 2002 07:25:03 -0000      1.3.2.1
***************
*** 482,497 ****
  
  /**  */
! 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;
!       }
  }
  
--- 482,493 ----
  
  /**  */
! 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 trans) {
!       SetTransparency(trans, trans, trans);
  }
  




reply via email to

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