Fix compiling when there is no XRender libraries.
svn path=/trunk/KDE/kdebase/workspace/; revision=890434
This commit is contained in:
parent
059e80c15e
commit
6d3f171ce5
1 changed files with 2 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue