...
This commit is contained in:
parent
63f8fd5929
commit
38bf1fde3a
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ def render_cursor(self, sg, cursor_program):
|
|||
def width(w=2, vert=True):
|
||||
dpi = self.dpix if vert else self.dpiy
|
||||
w *= dpi / 72.0 # as pixels
|
||||
factor = 2 / (self.width if vert else self.height)
|
||||
factor = 2 / (viewport_size.width if vert else viewport_size.height)
|
||||
return w * factor
|
||||
|
||||
ul = cursor_program.uniform_location
|
||||
|
|
|
|||
Loading…
Reference in a new issue