diff options
Diffstat (limited to 'firmware/drivers/lcd-1bit-vert.c')
-rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
404 | 404 | ||
405 | /* adjust to viewport */ | 405 | /* adjust to viewport */ |
406 | x1 += current_vp->x; | 406 | x1 += current_vp->x; |
407 | x2 += current_vp->x; | ||
407 | y += current_vp->y; | 408 | y += current_vp->y; |
408 | 409 | ||
409 | #if defined(HAVE_VIEWPORT_CLIP) | 410 | #if defined(HAVE_VIEWPORT_CLIP) |
410 | x2 += current_vp->x; | ||
411 | |||
412 | /********************* Viewport on screen clipping ********************/ | 411 | /********************* Viewport on screen clipping ********************/ |
413 | /* nothing to draw? */ | 412 | /* nothing to draw? */ |
414 | if (((unsigned)y >= (unsigned) LCDM(HEIGHT)) || (x1 >= LCDM(WIDTH)) | 413 | if (((unsigned)y >= (unsigned) LCDM(HEIGHT)) || (x1 >= LCDM(WIDTH)) |