From fab764f6c6fb07ef80239bccdb7e1c356c69644a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 25 Apr 2011 16:30:10 +0200 Subject: [PATCH] only use lanczos filter when either direction is scaled below 90% BUG: 263653 --- lanczosfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index aa2f0a1205..cbd0af5128 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -164,7 +164,7 @@ void LanczosShader::createOffsets(int count, float width, Qt::Orientation direct void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data) { #ifdef KWIN_HAVE_OPENGL_COMPOSITING - if (effects->compositingType() == KWin::OpenGLCompositing && + if (effects->compositingType() == KWin::OpenGLCompositing && (data.xScale < 0.9 || data.yScale < 0.9) && KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects) { if (!m_inited) init();