summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-10-21 20:16:07 +0200
committeralbator <albator@arcadia.vtf>2011-10-21 20:16:07 +0200
commit7a0adf35896618a7570e425941fc1b74c54def47 (patch)
tree16dab9d8bfbd93575440f357c70907cbb5480980 /mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch
parentcd71be65dc30c8007ec54becdf6c50260ed8e908 (diff)
parenta8707e2a9f22d082cecb8ea6079175076f983c55 (diff)
downloadtde-packaging-7a0adf35896618a7570e425941fc1b74c54def47.tar.gz
tde-packaging-7a0adf35896618a7570e425941fc1b74c54def47.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch')
-rw-r--r--mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch b/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch
new file mode 100644
index 000000000..7a252adc6
--- /dev/null
+++ b/mandriva/2010.2/other/ksplash-engine-moodin/moodin-fix-svg.patch
@@ -0,0 +1,67 @@
+--- moodin/src/scaler.cpp-- 2007-02-14 15:22:06.000000000 +0100
++++ moodin/src/scaler.cpp 2007-02-14 15:22:16.000000000 +0100
+@@ -15,7 +15,16 @@
+
+ Scaler::Scaler(QSize baseResolution, QSize targetResolution)
+ {
+- mBaseResolution = baseResolution;
++ if(mBaseResolution.isValid())
++ {
++ mBaseResolution = baseResolution;
++ mSvgFile =false;
++ }
++ else
++ {
++ mBaseResolution = targetResolution;
++ mSvgFile = true;
++ }
+ mTargetResolution = targetResolution;
+ }
+
+@@ -44,7 +53,7 @@
+
+ void Scaler::scaleCoords(QPoint* pt)
+ {
+- if (mBaseResolution == mTargetResolution)
++ if (!mSvgFile && (mBaseResolution == mTargetResolution))
+ return;
+
+ int ox = pt->x();
+@@ -95,7 +104,7 @@
+
+ bool Scaler::resolutionDiff()
+ {
+- return (mBaseResolution != mTargetResolution);
++ return (mSvgFile || (mBaseResolution != mTargetResolution));
+ }
+
+
+--- moodin/src/scaler.h-- 2007-02-14 15:22:09.000000000 +0100
++++ moodin/src/scaler.h 2007-02-14 15:22:20.000000000 +0100
+@@ -21,6 +21,7 @@
+ private:
+ QSize mBaseResolution;
+ QSize mTargetResolution;
++ bool mSvgFile;
+
+ public:
+ Scaler(QSize baseResolution, QSize targetResolution);
+--- moodin/src/thememoodin.cpp-- 2007-02-14 15:23:53.000000000 +0100
++++ moodin/src/thememoodin.cpp 2007-02-14 15:24:40.000000000 +0100
+@@ -88,7 +88,7 @@
+ mBaseResolution = cfg->readSizeEntry("BaseResolution", &size);
+ //For svg image use a negative size => force to create it.
+ if(!mUsersBackground && (mBackgroundImage.endsWith(".svg") || mBackgroundImage.endsWith(".svgz"))) {
+- mBaseResolution=QSize(-1,-1);
++ mBaseResolution=QSize();
+ }
+
+ mTranslate = cfg->readBoolEntry("Translate", true);
+@@ -248,7 +248,6 @@
+ else
+ {
+ QString name = mTheme->locateThemeData(*it);
+-
+ if (name.isEmpty())
+ continue;
+