Update of /cvsroot/planeshift/planeshift/src/common/paws
In directory sc8-pr-cvs1:/tmp/cvs-serv11046/src/common/paws
Modified Files:
pawswidget.cpp
Log Message:
Fixed widget resize problem on load
Index: pawswidget.cpp
===================================================================
RCS file: /cvsroot/planeshift/planeshift/src/common/paws/pawswidget.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pawswidget.cpp 18 Nov 2003 16:53:35 -0000 1.7
--- pawswidget.cpp 29 Nov 2003 05:09:27 -0000 1.8
***************
*** 430,434 ****
// Resize to loaded positions.
MoveTo( pos.xmin, pos.ymin );
!
//only set size if widget is resizable
if( IsResizable() )
--- 430,434 ----
// Resize to loaded positions.
MoveTo( pos.xmin, pos.ymin );
!
//only set size if widget is resizable
if( IsResizable() )
***************
*** 459,463 ****
return false;
}
!
return true;
}
--- 459,464 ----
return false;
}
!
! Resize();
return true;
}
***************
*** 683,687 ****
if (fadeVal>100) fadeVal=100;
! bgImage->SetAlpha(alphaMin + (alpha-alphaMin) * fadeVal * 0.010);
}
--- 684,688 ----
if (fadeVal>100) fadeVal=100;
! bgImage->SetAlpha((int)(alphaMin + (alpha-alphaMin) * fadeVal * 0.010));
}
|