diff options
Diffstat (limited to 'firmware/drivers/lcd-2bit-horz.c')
-rw-r--r-- | firmware/drivers/lcd-2bit-horz.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-2bit-horz.c b/firmware/drivers/lcd-2bit-horz.c index 475e466c42..d3d086a9d2 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) | |||
889 | 889 | ||
890 | (void)x; | 890 | (void)x; |
891 | 891 | ||
892 | if(y>=SCROLLABLE_LINES) return; | ||
893 | |||
892 | s = &scroll[y]; | 894 | s = &scroll[y]; |
893 | s->invert = !s->invert; | 895 | s->invert = !s->invert; |
894 | } | 896 | } |
@@ -939,6 +941,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, | |||
939 | struct scrollinfo* s; | 941 | struct scrollinfo* s; |
940 | int w, h; | 942 | int w, h; |
941 | 943 | ||
944 | if(y>=SCROLLABLE_LINES) return; | ||
945 | |||
942 | s = &scroll[y]; | 946 | s = &scroll[y]; |
943 | 947 | ||
944 | s->start_tick = current_tick + scroll_delay; | 948 | s->start_tick = current_tick + scroll_delay; |