Fix compile when OpenGL is not available.
svn path=/trunk/KDE/kdebase/workspace/; revision=1032334icc-effect-5.14.5
parent
5fdf18e65f
commit
f1460a0429
|
@ -110,11 +110,11 @@ void LogoutEffect::prePaintScreen( ScreenPrePaintData& data, int time )
|
||||||
frameDelay = 2;
|
frameDelay = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if( frameDelay )
|
if( frameDelay )
|
||||||
--frameDelay;
|
--frameDelay;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if( logoutWindow != NULL && !logoutWindowClosed )
|
if( logoutWindow != NULL && !logoutWindowClosed )
|
||||||
progress = qMin( 1.0, progress + time / animationTime( 2000.0 ));
|
progress = qMin( 1.0, progress + time / animationTime( 2000.0 ));
|
||||||
|
@ -234,14 +234,16 @@ void LogoutEffect::paintScreen( int mask, QRegion region, ScreenPaintData& data
|
||||||
|
|
||||||
void LogoutEffect::postPaintScreen()
|
void LogoutEffect::postPaintScreen()
|
||||||
{
|
{
|
||||||
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
||||||
if(( progress != 0.0 && progress != 1.0 ) || frameDelay )
|
if(( progress != 0.0 && progress != 1.0 ) || frameDelay )
|
||||||
{
|
|
||||||
effects->addRepaintFull();
|
effects->addRepaintFull();
|
||||||
}
|
#else
|
||||||
|
if( progress != 0.0 && progress != 1.0 )
|
||||||
|
effects->addRepaintFull();
|
||||||
|
#endif
|
||||||
|
|
||||||
if( progress > 0.0 )
|
if( progress > 0.0 )
|
||||||
{
|
|
||||||
logoutWindowPassed = false;
|
logoutWindowPassed = false;
|
||||||
}
|
|
||||||
effects->postPaintScreen();
|
effects->postPaintScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue