summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-2bit-vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-2bit-vi.c')
-rw-r--r--firmware/drivers/lcd-2bit-vi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-2bit-vi.c b/firmware/drivers/lcd-2bit-vi.c
index 5edb588ce0..853cd88f54 100644
--- a/firmware/drivers/lcd-2bit-vi.c
+++ b/firmware/drivers/lcd-2bit-vi.c
@@ -594,11 +594,10 @@ void LCDFN(hline)(int x1, int x2, int y)
594 594
595 /* adjust x1 and y to viewport */ 595 /* adjust x1 and y to viewport */
596 x1 += current_vp->x; 596 x1 += current_vp->x;
597 x2 += current_vp->x;
597 y += current_vp->y; 598 y += current_vp->y;
598 599
599#if defined(HAVE_VIEWPORT_CLIP) 600#if defined(HAVE_VIEWPORT_CLIP)
600 x2 += current_vp->x;
601
602 /********************* Viewport on screen clipping ********************/ 601 /********************* Viewport on screen clipping ********************/
603 /* nothing to draw? */ 602 /* nothing to draw? */
604 if (((unsigned)y >= (unsigned) LCDM(HEIGHT)) || (x1 >= LCDM(WIDTH)) 603 if (((unsigned)y >= (unsigned) LCDM(HEIGHT)) || (x1 >= LCDM(WIDTH))