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
Martin Gräßlin 2013-09-06 09:47:12 +02:00
parent 40588e05ea
commit 979e5e9136
1 changed files with 1 additions and 3 deletions

View File

@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kwinglplatform.h>
#include <kwineffects.h>
#include <KDE/KGlobalSettings>
#include <qmath.h>
#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)
{
if ((data.xScale() < 0.9 || data.yScale() < 0.9) &&
KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects) {
if (data.xScale() < 0.9 || data.yScale() < 0.9) {
if (!m_inited)
init();
const QRect screenRect = Workspace::self()->clientArea(ScreenArea, w->screen(), w->desktop());