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) | |||
1027 | 1027 | ||
1028 | (void)x; | 1028 | (void)x; |
1029 | 1029 | ||
1030 | if(y>=SCROLLABLE_LINES) return; | ||
1031 | |||
1030 | s = &scroll[y]; | 1032 | s = &scroll[y]; |
1031 | s->invert = !s->invert; | 1033 | s->invert = !s->invert; |
1032 | } | 1034 | } |
@@ -1077,6 +1079,8 @@ void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *stri | |||
1077 | struct scrollinfo* s; | 1079 | struct scrollinfo* s; |
1078 | int w, h; | 1080 | int w, h; |
1079 | 1081 | ||
1082 | if(y>=SCROLLABLE_LINES) return; | ||
1083 | |||
1080 | s = &scroll[y]; | 1084 | s = &scroll[y]; |
1081 | 1085 | ||
1082 | s->start_tick = current_tick + scroll_delay; | 1086 | s->start_tick = current_tick + scroll_delay; |