Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tasprite_factory.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-10 18:18:29 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-10 18:18:29 (GMT)
commit74381a5a7cdb516e753f4012dbba5ebbe1dc7ba8 (patch)
treebc238827b5c23bbffb91a6b6d1063dc9b7bd20a7 /tasprite_factory.py
parent963f3ff3810877b02eee65a9d50155cdb3ccf7ae (diff)
adjusting margins of sandwich blocks
Diffstat (limited to 'tasprite_factory.py')
-rwxr-xr-xtasprite_factory.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tasprite_factory.py b/tasprite_factory.py
index deddf83..fee2884 100755
--- a/tasprite_factory.py
+++ b/tasprite_factory.py
@@ -356,8 +356,8 @@ class SVG:
def sandwich_top(self):
x = self._stroke_width/2.0
y = self._stroke_width/2.0+self._radius
- self.margins[0] = int(x+self._stroke_width+0.5)
- self.margins[1] = int(self._stroke_width+0.5)
+ self.margins[0] = int((x+self._stroke_width+0.5)*self._scale)
+ self.margins[1] = int((self._stroke_width+0.5)*self._scale)
self.margins[2] = 0
self.margins[3] = 0
svg = self._new_path(x, y)
@@ -384,8 +384,8 @@ class SVG:
def sandwich_bottom(self):
x = self._stroke_width/2.0
y = self._stroke_width/2.0
- self.margins[0] = int(self._stroke_width+0.5)
- self.margins[1] = int(self._stroke_width+0.5)
+ self.margins[0] = int((x+self._stroke_width+0.5)*self._scale)
+ self.margins[1] = int((self._stroke_width+0.5)*self._scale)
self.margins[2] = 0
self.margins[3] = 0
svg = self._new_path(x, y)