diff options
Diffstat (limited to 'firmware/drivers/lcd-remote-2bit-vi.c')
-rw-r--r-- | firmware/drivers/lcd-remote-2bit-vi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-remote-2bit-vi.c b/firmware/drivers/lcd-remote-2bit-vi.c index e0f6b35004..65704f0bd3 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; |