diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/render_svg.py b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/render_svg.py
index e19e3585..7fb2fdd0 100644
--- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/render_svg.py
+++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/render_svg.py
@@ -8,6 +8,7 @@ import os
import math
from xml.dom.minidom import parse
from optparse import OptionParser
+import scalergba
try:
import rsvg
@@ -86,7 +87,7 @@ def get_layers_from_svg(svgData):
return layers
def render_cursors(inpath, outpath):
- scalefactor = 1
+ scalefactor = 4
with open(os.path.join(inpath,"Cursor_Base.svg"), "r") as svgFile:
cursorSVG = parse(svgFile)
layers = get_layers_from_svg(cursorSVG)
@@ -111,7 +112,9 @@ def render_cursors(inpath, outpath):
ctx.scale(scalefactor, scalefactor)
svg.render_cairo(ctx)
- surface.write_to_png(os.path.join(outpath, cursor + ".png"))
+ outfile = os.path.join(outpath, cursor + ".png")
+ surface.write_to_png(outfile)
+ scalergba.scale(outfile, outfile, scalefactor)
def render_loading_books(inpath, outpath):
resSize = {"width":256, "height":256}
diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/scalergba.py b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/scalergba.py
new file mode 100755
index 00000000..65593e98
--- /dev/null
+++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/external/scalergba.py
@@ -0,0 +1,180 @@
+#!/opt/local/bin/python2.7
+
+# Christian Walther 2011-07-20
+# Public Domain
+
+# scalergba.py