diff options
| -rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 3 | ||||
| -rw-r--r-- | firmware/drivers/lcd-2bit-vi.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index ae7cddb..0518616 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 5edb588..853cd88 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)) |