fix screenDistToDist() bug
This commit is contained in:
parent
9e8c5ac5d6
commit
6a6e635902
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user