summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-scroll.c b/firmware/drivers/lcd-scroll.c
index cd8fc4587e..26b15732cd 100644
--- a/firmware/drivers/lcd-scroll.c
+++ b/firmware/drivers/lcd-scroll.c
@@ -64,8 +64,8 @@ void LCDFN(scroll_stop_viewport_rect)(const struct viewport *vp, int x, int y, i
64 struct scrollinfo *s = &LCDFN(scroll_info).scroll[i]; 64 struct scrollinfo *s = &LCDFN(scroll_info).scroll[i];
65 /* check if the specified area crosses the viewport in some way */ 65 /* check if the specified area crosses the viewport in some way */
66 if (s->vp == vp 66 if (s->vp == vp
67 && (x < (s->x+s->width) && (x+width) >= s->x) 67 && (x < (s->x+s->width) && (x+width) > s->x)
68 && (y < (s->y+s->height) && (y+height) >= s->y)) 68 && (y < (s->y+s->height) && (y+height) > s->y))
69 { 69 {
70 /* inform scroller about end of scrolling */ 70 /* inform scroller about end of scrolling */
71 s->line = NULL; 71 s->line = NULL;