Do not check graphicsEffectsLevel for LanczosFilter
We use GPU and driver dependent checks which are more accurate than the global setting has ever been.icc-effect-5.14.5
parent
40588e05ea
commit
979e5e9136
|
@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include <kwinglplatform.h>
|
#include <kwinglplatform.h>
|
||||||
|
|
||||||
#include <kwineffects.h>
|
#include <kwineffects.h>
|
||||||
#include <KDE/KGlobalSettings>
|
|
||||||
|
|
||||||
#include <qmath.h>
|
#include <qmath.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
@ -178,8 +177,7 @@ void LanczosFilter::createOffsets(int count, float width, Qt::Orientation direct
|
||||||
|
|
||||||
void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data)
|
void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data)
|
||||||
{
|
{
|
||||||
if ((data.xScale() < 0.9 || data.yScale() < 0.9) &&
|
if (data.xScale() < 0.9 || data.yScale() < 0.9) {
|
||||||
KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects) {
|
|
||||||
if (!m_inited)
|
if (!m_inited)
|
||||||
init();
|
init();
|
||||||
const QRect screenRect = Workspace::self()->clientArea(ScreenArea, w->screen(), w->desktop());
|
const QRect screenRect = Workspace::self()->clientArea(ScreenArea, w->screen(), w->desktop());
|
||||||
|
|
Loading…
Reference in New Issue