summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
committerTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
commit76ef832ce5348d12a871223d4c034c7daeaddb82 (patch)
tree7024a1f39a6114daa8c5ed24bb31a8687c832b9a /mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch
parentec2515f058c60d2478a549f58376db628ba556b9 (diff)
downloadtde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.tar.gz
tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.zip
Adding the remaining Mandriva patches and spec files
Diffstat (limited to 'mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch')
-rw-r--r--mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch b/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch
new file mode 100644
index 000000000..1775f4b7d
--- /dev/null
+++ b/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix_svg_on_base_resolution.patch
@@ -0,0 +1,12 @@
+diff -p -up moodin/src/cache.cpp.orig moodin/src/cache.cpp
+--- moodin/src/cache.cpp.orig 2008-02-28 11:50:22.000000000 -0300
++++ moodin/src/cache.cpp 2008-02-28 11:50:30.000000000 -0300
+@@ -41,7 +41,7 @@ QImage* Cache::cacheFile(const QString&
+ QStringList parts = QStringList::split("/", file);
+ QFile cachedFile(mCacheDir.filePath(parts.last()));
+
+- if (!mScaler->resolutionDiff())
++ if (!mScaler->resolutionDiff() && !file.endsWith(".svg") && !file.endsWith(".svgz"))
+ return new QImage(file);
+ else if (isInSync(parts.last()) && cachedFile.exists())
+ return new QImage(cachedFile.name());