Fix compiling when there is no XRender libraries.

svn path=/trunk/KDE/kdebase/workspace/; revision=890434
This commit is contained in:
Lucas Murray 2008-11-29 11:08:53 +00:00
parent 059e80c15e
commit 6d3f171ce5

View file

@ -636,6 +636,7 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> 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 )