From f1460a042997734fbc8fd0a32a5e9a26b56cde86 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Wed, 7 Oct 2009 15:10:15 +0000 Subject: [PATCH] Fix compile when OpenGL is not available. svn path=/trunk/KDE/kdebase/workspace/; revision=1032334 --- effects/logout/logout.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/effects/logout/logout.cpp b/effects/logout/logout.cpp index dafb26e0c8..87ffd55246 100644 --- a/effects/logout/logout.cpp +++ b/effects/logout/logout.cpp @@ -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(); }