Move to and line to in correct order

This commit is contained in:
XANTRONIX 2025-03-12 11:49:20 -04:00
parent 9f18968a56
commit 15ec7b561f

View file

@ -118,8 +118,8 @@ class SkewTGraph():
sx, sy = self.sample_to_screen(temp, pressure)
if sx_last is not None:
cr.move_to(x + sx, y + sy)
cr.line_to(x + sx_last, y + sy_last)
cr.move_to(x + sx_last, y + sy_last)
cr.line_to(x + sx, y + sy)
cr.stroke()
sx_last = sx