From fa30d774af2c99ea12274eb5870a6ad46c8511f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 3 Jul 2011 20:15:57 +0200 Subject: [PATCH] Paint windows on edge without Lanczos filger This makes it possible to use BoxSwitch in animated mode wihout PaintClipper. --- effects/boxswitch/boxswitch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/effects/boxswitch/boxswitch.cpp b/effects/boxswitch/boxswitch.cpp index 274417457b..5a09382412 100644 --- a/effects/boxswitch/boxswitch.cpp +++ b/effects/boxswitch/boxswitch.cpp @@ -724,7 +724,7 @@ void BoxSwitchEffect::paintWindowThumbnail(EffectWindow* w) // paint one part of the thumbnail effects->paintWindow(w, - PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, + PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED, info->thumbnail, data); QRect secondThumbnail; @@ -764,7 +764,7 @@ void BoxSwitchEffect::paintWindowThumbnail(EffectWindow* w) secondThumbnail.adjusted(highlight_margin, highlight_margin, -highlight_margin, -highlight_margin), Qt::KeepAspectRatio); effects->paintWindow(w, - PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, + PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED, info->thumbnail, data); } else if ((windows.size() % 2 == 0) && (w == right_window)) { // in case of even number of thumbnails: @@ -805,7 +805,7 @@ void BoxSwitchEffect::paintWindowThumbnail(EffectWindow* w) // left quads are painted on right side of frame data.quads = leftQuads; effects->drawWindow(w, - PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, + PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED, info->thumbnail, data); // right quads are painted on left side of frame @@ -819,7 +819,7 @@ void BoxSwitchEffect::paintWindowThumbnail(EffectWindow* w) secondThumbnail.adjusted(highlight_margin, highlight_margin, -highlight_margin, -highlight_margin), Qt::KeepAspectRatio); effects->drawWindow(w, - PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, + PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED, info->thumbnail, data); } else { effects->drawWindow(w,