diff --git a/effects/boxswitch/boxswitch.cpp b/effects/boxswitch/boxswitch.cpp index 8fd96c9f7e..0963c8d88b 100644 --- a/effects/boxswitch/boxswitch.cpp +++ b/effects/boxswitch/boxswitch.cpp @@ -815,7 +815,7 @@ void BoxSwitchEffect::paintWindowThumbnail( EffectWindow* w ) // paint one part of the thumbnail effects->paintWindow( w, - PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED, + PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, windows[ w ]->thumbnail, data ); QRect secondThumbnail; @@ -864,7 +864,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_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, windows[ w ]->thumbnail, data ); } else if( ( windows.size() % 2 == 0 ) && ( w == right_window ) ) @@ -916,7 +916,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_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, windows[ w ]->thumbnail, data ); // right quads are painted on left side of frame @@ -930,16 +930,13 @@ 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_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, windows[ w ]->thumbnail, data ); } else { - int mask = PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED; - if (!mAnimateSwitch) - mask |= PAINT_WINDOW_LANCZOS; effects->drawWindow( w, - mask, + PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, windows[ w ]->thumbnail, data ); } }