Fix compiling when there is no XRender libraries.

svn path=/trunk/KDE/kdebase/workspace/; revision=890434
icc-effect-5.14.5
Lucas Murray 2008-11-29 11:08:53 +00:00
parent 059e80c15e
commit 6d3f171ce5
1 changed files with 2 additions and 0 deletions

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 )