fix screenDistToDist() bug
This commit is contained in:
1 parent
9e8c5ac5d6
commit
6a6e635902
1 file changed
+1
-1
+1
-1
@@ -143,7 +143,7 @@ class SketchWidget:
|
|||||||
+ self.view_center[1])
|
+ self.view_center[1])
|
||||||
|
|
||||||
def screenDistToDist(self, dist):
|
def screenDistToDist(self, dist):
|
||||||
return dist * self.size[0] / self.view_width
|
return dist / self.size[0] * self.view_width
|
||||||
|
|
||||||
def drawLine(self, shape):
|
def drawLine(self, shape):
|
||||||
glColor(*self.line_color)
|
glColor(*self.line_color)
|
||||||
|
|||||||
Reference in new issue
Block a user