Fixed a problem where in zooming in, stroke widths all grew

This commit is contained in:
Grant Sanderson 2019-01-17 14:09:50 -08:00
parent 66075aa5d2
commit 5aa11cf8ad

View file

@ -392,7 +392,10 @@ class Camera(object):
vmobject
)
ctx.set_line_width(
width * self.cairo_line_width_multiple
width * self.cairo_line_width_multiple *
# This ensures lines have constant width
# as you zoom in on them.
(self.get_frame_width() / FRAME_WIDTH)
)
ctx.stroke_preserve()
return self