mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
...
This commit is contained in:
@@ -403,7 +403,7 @@ class CharGrid:
|
|||||||
def width(w=2, vert=True):
|
def width(w=2, vert=True):
|
||||||
dpi = self.dpix if vert else self.dpiy
|
dpi = self.dpix if vert else self.dpiy
|
||||||
w *= dpi / 72.0 # as pixels
|
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
|
return w * factor
|
||||||
|
|
||||||
ul = cursor_program.uniform_location
|
ul = cursor_program.uniform_location
|
||||||
|
|||||||
Reference in New Issue
Block a user