From a5d620a6c24238f74b4518e9a59aa7bf58d7a0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 16 Mar 2012 08:43:52 +0100 Subject: [PATCH] Use KWin Options to read texture scale settings No need to re-read the config. REVIEW: 104298 --- lanczosfilter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index accd93fbb8..010acc2ae5 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -21,6 +21,7 @@ along with this program. If not, see . #include "lanczosfilter.h" #include "effects.h" +#include "options.h" #include #include @@ -59,9 +60,7 @@ void LanczosFilter::init() kWarning(1212) << "Lanczos Filter forced on by environment variable"; } - KSharedConfigPtr config = KSharedConfig::openConfig("kwinrc"); - - if (!force && config->group("Compositing").readEntry("GLTextureFilter", 2) != 2) + if (!force && options->glSmoothScale() != 2) return; // disabled by config // The lanczos filter is reported to be broken with the Intel driver and Mesa 7.10