Put transformWindowDamage() back.

BUG: 154714


svn path=/trunk/KDE/kdebase/workspace/; revision=756797
This commit is contained in:
Luboš Luňák 2008-01-03 19:51:22 +00:00
parent bc5acf8268
commit 34acf422ac
2 changed files with 9 additions and 0 deletions

View file

@ -109,6 +109,14 @@ void ShadowEffect::drawWindow( EffectWindow* w, int mask, QRegion region, Window
effects->drawWindow( w, mask, region, data );
}
QRect ShadowEffect::transformWindowDamage( EffectWindow* w, const QRect& r )
{
if( !useShadow( w ))
return effects->transformWindowDamage( w, r );
QRect r2 = r | shadowRectangle( r );
return effects->transformWindowDamage( w, r2 );
}
void ShadowEffect::windowClosed( EffectWindow* c )
{
effects->addRepaint( shadowRectangle( c->geometry() ));

View file

@ -38,6 +38,7 @@ class ShadowEffect
virtual void drawWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );
virtual void windowClosed( EffectWindow* c );
virtual QRect transformWindowDamage( EffectWindow* w, const QRect& r );
private:
void drawShadow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data, bool clip );
void addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2) const;