Fix compile when OpenGL is not available.

svn path=/trunk/KDE/kdebase/workspace/; revision=1032334
This commit is contained in:
Lucas Murray 2009-10-07 15:10:15 +00:00
parent 5fdf18e65f
commit f1460a0429

View file

@ -110,11 +110,11 @@ void LogoutEffect::prePaintScreen( ScreenPrePaintData& data, int time )
frameDelay = 2;
}
}
#endif
if( frameDelay )
--frameDelay;
else
#endif
{
if( logoutWindow != NULL && !logoutWindowClosed )
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()
{
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
if(( progress != 0.0 && progress != 1.0 ) || frameDelay )
{
effects->addRepaintFull();
}
#else
if( progress != 0.0 && progress != 1.0 )
effects->addRepaintFull();
#endif
if( progress > 0.0 )
{
logoutWindowPassed = false;
}
effects->postPaintScreen();
}