From 0a430fee9a8deef4daf2fffe254ecf92ddcd1993 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Wed, 20 Jun 2018 09:11:59 +0200 Subject: [PATCH] display: Fix bug in Type 340 vector drawing routine. In the lineTwoStep function, a typo makes vectors in two quadrants drawn incorrectly. --- display/type340.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/type340.c b/display/type340.c index c4840bcf..a58e9299 100644 --- a/display/type340.c +++ b/display/type340.c @@ -405,7 +405,7 @@ lineTwoStep(int x0, int y0, int x1, int y1) if (d > 0) { lpoint(x0 += stepx, y0); lpoint(x0 += stepx, y0 += stepy); - lpoint(x1 -= stepy, y1); + lpoint(x1 -= stepx, y1); lpoint(x1 -= stepx, y1 -= stepy); d += incr1; } else {