@ -129,9 +129,19 @@ void KSMShutdownFeedback::slotPaintEffect()
if ( m_greyImageCreated = = false )
{
m_greyImageCreated = true ;
setBackgroundMode ( TQWidget : : NoBackground ) ;
// eliminate nasty flicker on first show
m_root . resize ( width ( ) , height ( ) ) ;
TQImage blendedImage = m_grayImage ;
TQPainter p ;
p . begin ( & m_root ) ;
blendedImage . setAlphaBuffer ( false ) ;
p . drawImage ( 0 , 0 , blendedImage ) ;
p . end ( ) ;
setBackgroundPixmap ( m_root ) ;
setGeometry ( TQApplication : : desktop ( ) - > geometry ( ) ) ;
m_root . resize ( width ( ) , height ( ) ) ; // for the default logout
setBackgroundMode( TQWidget : : NoBackground ) ;
m_unfadedImage = m_grayImage . copy ( ) ;
@ -233,6 +243,7 @@ void KSMShutdownFeedback::slotPaintEffect()
if ( m_greyImageCreated = = false )
{
m_greyImageCreated = true ;
setBackgroundMode ( TQWidget : : NoBackground ) ;
setGeometry ( TQApplication : : desktop ( ) - > geometry ( ) ) ;
m_root . resize ( width ( ) , height ( ) ) ; // for the default logout
@ -365,9 +376,19 @@ void KSMShutdownFeedback::slotPaintEffect()
if ( m_greyImageCreated = = false )
{
m_greyImageCreated = true ;
setBackgroundMode ( TQWidget : : NoBackground ) ;
// eliminate nasty flicker on first show
m_root . resize ( width ( ) , height ( ) ) ;
TQImage blendedImage = m_grayImage ;
TQPainter p ;
p . begin ( & m_root ) ;
blendedImage . setAlphaBuffer ( false ) ;
p . drawImage ( 0 , 0 , blendedImage ) ;
p . end ( ) ;
setBackgroundPixmap ( m_root ) ;
setGeometry ( TQApplication : : desktop ( ) - > geometry ( ) ) ;
m_root . resize ( width ( ) , height ( ) ) ; // for the default logout
setBackgroundMode( TQWidget : : NoBackground ) ;
m_unfadedImage = m_grayImage . copy ( ) ;