fix screenDistToDist() bug

This commit is contained in:
Josh Holtrop 2011-04-23 22:34:52 -04:00
parent 9e8c5ac5d6
commit 6a6e635902

View File

@ -143,7 +143,7 @@ class SketchWidget:
+ self.view_center[1])
def screenDistToDist(self, dist):
return dist * self.size[0] / self.view_width
return dist / self.size[0] * self.view_width
def drawLine(self, shape):
glColor(*self.line_color)