From 6d3f171ce5c77e4109a1faa9306e0da1f050fb2d Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sat, 29 Nov 2008 11:08:53 +0000 Subject: [PATCH] Fix compiling when there is no XRender libraries. svn path=/trunk/KDE/kdebase/workspace/; revision=890434 --- effects/shadow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/shadow.cpp b/effects/shadow.cpp index 67c8263ed9..f57e259014 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -636,6 +636,7 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector vert void ShadowEffect::drawShadowQuadXRender( XRenderPicture *picture, QRect rect, float xScale, float yScale, QColor color, float opacity, float brightness, float saturation ) { +#ifdef KWIN_HAVE_XRENDER_COMPOSITING XRenderColor xc; if( color.isValid() ) xc = preMultiply( color, opacity ); @@ -680,6 +681,7 @@ void ShadowEffect::drawShadowQuadXRender( XRenderPicture *picture, QRect rect, f }}; XRenderSetPictureTransform( display(), *picture, &xform ); } +#endif } void ShadowEffect::drawShadow( EffectWindow* window, int mask, QRegion region, const WindowPaintData& data )