diff options
| -rw-r--r-- | firmware/drivers/lcd-16bit.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-2bit-horz.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-2bit-vert.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-charcell.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/lcd-remote-1bit-v.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-remote-2bit-vi.c | 4 |
7 files changed, 26 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index 7269e54..67736dd 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c @@ -848,6 +848,8 @@ void lcd_invertscroll(int x, int y) (void)x; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->invert = !s->invert; } @@ -898,6 +900,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, struct scrollinfo* s; int w, h; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index 64c1ace..ec0ddee 100644 --- a/firmware/drivers/lcd-1bit-vert.c +++ b/firmware/drivers/lcd-1bit-vert.c @@ -692,6 +692,8 @@ void lcd_invertscroll(int x, int y) (void)x; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->invert = !s->invert; } @@ -743,6 +745,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, struct scrollinfo* s; int w, h; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; diff --git a/firmware/drivers/lcd-2bit-horz.c b/firmware/drivers/lcd-2bit-horz.c index 475e466..d3d086a 100644 --- a/firmware/drivers/lcd-2bit-horz.c +++ b/firmware/drivers/lcd-2bit-horz.c @@ -889,6 +889,8 @@ void lcd_invertscroll(int x, int y) (void)x; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->invert = !s->invert; } @@ -939,6 +941,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, struct scrollinfo* s; int w, h; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; diff --git a/firmware/drivers/lcd-2bit-vert.c b/firmware/drivers/lcd-2bit-vert.c index 7a49f35..37abf04 100644 --- a/firmware/drivers/lcd-2bit-vert.c +++ b/firmware/drivers/lcd-2bit-vert.c @@ -1025,6 +1025,8 @@ void lcd_invertscroll(int x, int y) (void)x; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->invert = !s->invert; } @@ -1075,6 +1077,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, struct scrollinfo* s; int w, h; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index 4d8a693..3c8db1a 100644 --- a/firmware/drivers/lcd-charcell.c +++ b/firmware/drivers/lcd-charcell.c @@ -456,6 +456,8 @@ void lcd_puts_scroll_offset(int x, int y, const unsigned char *string, struct scrollinfo* s; int len; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; diff --git a/firmware/drivers/lcd-remote-1bit-v.c b/firmware/drivers/lcd-remote-1bit-v.c index 0aa3d89..6b5b1fb 100644 --- a/firmware/drivers/lcd-remote-1bit-v.c +++ b/firmware/drivers/lcd-remote-1bit-v.c @@ -691,6 +691,8 @@ void lcd_remote_invertscroll(int x, int y) (void)x; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->invert = !s->invert; } @@ -741,6 +743,8 @@ void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *stri struct scrollinfo* s; int w, h; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; diff --git a/firmware/drivers/lcd-remote-2bit-vi.c b/firmware/drivers/lcd-remote-2bit-vi.c index e0f6b35..65704f0 100644 --- a/firmware/drivers/lcd-remote-2bit-vi.c +++ b/firmware/drivers/lcd-remote-2bit-vi.c @@ -1027,6 +1027,8 @@ void lcd_remote_invertscroll(int x, int y) (void)x; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->invert = !s->invert; } @@ -1077,6 +1079,8 @@ void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *stri struct scrollinfo* s; int w, h; + if(y>=SCROLLABLE_LINES) return; + s = &scroll[y]; s->start_tick = current_tick + scroll_delay; |