Paint windows on edge without Lanczos filger
This makes it possible to use BoxSwitch in animated mode wihout PaintClipper.
This commit is contained in:
parent
a360d59f7e
commit
fa30d774af
1 changed files with 4 additions and 4 deletions
|
@ -724,7 +724,7 @@ void BoxSwitchEffect::paintWindowThumbnail(EffectWindow* w)
|
||||||
|
|
||||||
// paint one part of the thumbnail
|
// paint one part of the thumbnail
|
||||||
effects->paintWindow(w,
|
effects->paintWindow(w,
|
||||||
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS,
|
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED,
|
||||||
info->thumbnail, data);
|
info->thumbnail, data);
|
||||||
|
|
||||||
QRect secondThumbnail;
|
QRect secondThumbnail;
|
||||||
|
@ -764,7 +764,7 @@ void BoxSwitchEffect::paintWindowThumbnail(EffectWindow* w)
|
||||||
secondThumbnail.adjusted(highlight_margin, highlight_margin, -highlight_margin, -highlight_margin),
|
secondThumbnail.adjusted(highlight_margin, highlight_margin, -highlight_margin, -highlight_margin),
|
||||||
Qt::KeepAspectRatio);
|
Qt::KeepAspectRatio);
|
||||||
effects->paintWindow(w,
|
effects->paintWindow(w,
|
||||||
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS,
|
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED,
|
||||||
info->thumbnail, data);
|
info->thumbnail, data);
|
||||||
} else if ((windows.size() % 2 == 0) && (w == right_window)) {
|
} else if ((windows.size() % 2 == 0) && (w == right_window)) {
|
||||||
// in case of even number of thumbnails:
|
// 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
|
// left quads are painted on right side of frame
|
||||||
data.quads = leftQuads;
|
data.quads = leftQuads;
|
||||||
effects->drawWindow(w,
|
effects->drawWindow(w,
|
||||||
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS,
|
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED,
|
||||||
info->thumbnail, data);
|
info->thumbnail, data);
|
||||||
|
|
||||||
// right quads are painted on left side of frame
|
// 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),
|
secondThumbnail.adjusted(highlight_margin, highlight_margin, -highlight_margin, -highlight_margin),
|
||||||
Qt::KeepAspectRatio);
|
Qt::KeepAspectRatio);
|
||||||
effects->drawWindow(w,
|
effects->drawWindow(w,
|
||||||
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS,
|
PAINT_WINDOW_OPAQUE | PAINT_WINDOW_TRANSFORMED,
|
||||||
info->thumbnail, data);
|
info->thumbnail, data);
|
||||||
} else {
|
} else {
|
||||||
effects->drawWindow(w,
|
effects->drawWindow(w,
|
||||||
|
|
Loading…
Reference in a new issue