diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index ae7cddb19a..051861616f 100644 --- a/firmware/drivers/lcd-1bit-vert.c +++ b/firmware/drivers/lcd-1bit-vert.c @@ -404,11 +404,10 @@ void LCDFN(hline)(int x1, int x2, int y) /* adjust to viewport */ x1 += current_vp->x; + x2 += current_vp->x; y += current_vp->y; #if defined(HAVE_VIEWPORT_CLIP) - x2 += current_vp->x; - /********************* Viewport on screen clipping ********************/ /* nothing to draw? */ if (((unsigned)y >= (unsigned) LCDM(HEIGHT)) || (x1 >= LCDM(WIDTH)) 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) /* adjust x1 and y to viewport */ x1 += current_vp->x; + x2 += current_vp->x; y += current_vp->y; #if defined(HAVE_VIEWPORT_CLIP) - x2 += current_vp->x; - /********************* Viewport on screen clipping ********************/ /* nothing to draw? */ if (((unsigned)y >= (unsigned) LCDM(HEIGHT)) || (x1 >= LCDM(WIDTH))