don't intify floating point coordinates

pull/12/merge
Lex Neva 2018-01-06 15:11:42 -05:00
rodzic 8d8e886d8b
commit 218ec1b63d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ class EmbroiderySimulator(wx.Frame):
self.frame_period = kwargs.pop('frame_period', 80)
self.stitches_per_frame = kwargs.pop('stitches_per_frame', 1)
self.target_duration = kwargs.pop('target_duration', None)
self.scale = 1
self.scale = 3
wx.Frame.__init__(self, *args, **kwargs)
@ -174,7 +174,7 @@ class EmbroiderySimulator(wx.Frame):
# JUMP just means a long stitch, really.
x, y = fields[2:]
new_pos = (int(float(x) * PIXELS_PER_MM), int(float(y) * PIXELS_PER_MM))
new_pos = (float(x) * PIXELS_PER_MM, float(y) * PIXELS_PER_MM)
if not cut:
segments.append(((pos, new_pos), pen))