remove paintEffectFrame implementation, add a FIXME

This commit is contained in:
Marco Martin 2014-01-23 10:54:40 +01:00
parent 3d9ddb0cf2
commit 65c3c4c1b4

View file

@ -356,12 +356,7 @@ void ContrastEffect::drawWindow(EffectWindow *w, int mask, QRegion region, Windo
void ContrastEffect::paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity)
{
const QRect screen(0, 0, displayWidth(), displayHeight());
bool valid = shader && shader->isValid();
QRegion shape = frame->geometry().adjusted(-5, -5, 5, 5) & screen;
if (valid && !shape.isEmpty() && region.intersects(shape.boundingRect()) && frame->style() != EffectFrameNone) {
doContrast(shape, screen, opacity * frameOpacity);
}
//FIXME: this is a no-op for now, it should figure out the right contrast, intensity, saturation
effects->paintEffectFrame(frame, region, opacity, frameOpacity);
}