From 74381a5a7cdb516e753f4012dbba5ebbe1dc7ba8 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 10 Feb 2010 18:18:29 +0000 Subject: adjusting margins of sandwich blocks --- (limited to 'tasprite_factory.py') 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) -- cgit v0.9.1