diff options
Diffstat (limited to 'firmware')
-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 7269e54dcd..67736ddf85 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c | |||
@@ -848,6 +848,8 @@ void lcd_invertscroll(int x, int y) | |||
848 | 848 | ||
849 | (void)x; | 849 | (void)x; |
850 | 850 | ||
851 | if(y>=SCROLLABLE_LINES) return; | ||
852 | |||
851 | s = &scroll[y]; | 853 | s = &scroll[y]; |
852 | s->invert = !s->invert; | 854 | s->invert = !s->invert; |
853 | } | 855 | } |
@@ -898,6 +900,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, | |||
898 | struct scrollinfo* s; | 900 | struct scrollinfo* s; |
899 | int w, h; | 901 | int w, h; |
900 | 902 | ||
903 | if(y>=SCROLLABLE_LINES) return; | ||
904 | |||
901 | s = &scroll[y]; | 905 | s = &scroll[y]; |
902 | 906 | ||
903 | s->start_tick = current_tick + scroll_delay; | 907 | s->start_tick = current_tick + scroll_delay; |
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index 64c1ace292..ec0ddeec41 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) | |||
692 | 692 | ||
693 | (void)x; | 693 | (void)x; |
694 | 694 | ||
695 | if(y>=SCROLLABLE_LINES) return; | ||
696 | |||
695 | s = &scroll[y]; | 697 | s = &scroll[y]; |
696 | s->invert = !s->invert; | 698 | s->invert = !s->invert; |
697 | } | 699 | } |
@@ -743,6 +745,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, | |||
743 | struct scrollinfo* s; | 745 | struct scrollinfo* s; |
744 | int w, h; | 746 | int w, h; |
745 | 747 | ||
748 | if(y>=SCROLLABLE_LINES) return; | ||
749 | |||
746 | s = &scroll[y]; | 750 | s = &scroll[y]; |
747 | 751 | ||
748 | s->start_tick = current_tick + scroll_delay; | 752 | s->start_tick = current_tick + scroll_delay; |
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; |
diff --git a/firmware/drivers/lcd-2bit-vert.c b/firmware/drivers/lcd-2bit-vert.c index 7a49f35312..37abf0496f 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) | |||
1025 | 1025 | ||
1026 | (void)x; | 1026 | (void)x; |
1027 | 1027 | ||
1028 | if(y>=SCROLLABLE_LINES) return; | ||
1029 | |||
1028 | s = &scroll[y]; | 1030 | s = &scroll[y]; |
1029 | s->invert = !s->invert; | 1031 | s->invert = !s->invert; |
1030 | } | 1032 | } |
@@ -1075,6 +1077,8 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, | |||
1075 | struct scrollinfo* s; | 1077 | struct scrollinfo* s; |
1076 | int w, h; | 1078 | int w, h; |
1077 | 1079 | ||
1080 | if(y>=SCROLLABLE_LINES) return; | ||
1081 | |||
1078 | s = &scroll[y]; | 1082 | s = &scroll[y]; |
1079 | 1083 | ||
1080 | s->start_tick = current_tick + scroll_delay; | 1084 | s->start_tick = current_tick + scroll_delay; |
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index 4d8a693e1f..3c8db1ae97 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, | |||
456 | struct scrollinfo* s; | 456 | struct scrollinfo* s; |
457 | int len; | 457 | int len; |
458 | 458 | ||
459 | if(y>=SCROLLABLE_LINES) return; | ||
460 | |||
459 | s = &scroll[y]; | 461 | s = &scroll[y]; |
460 | 462 | ||
461 | s->start_tick = current_tick + scroll_delay; | 463 | 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 0aa3d890f7..6b5b1fb42f 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) | |||
691 | 691 | ||
692 | (void)x; | 692 | (void)x; |
693 | 693 | ||
694 | if(y>=SCROLLABLE_LINES) return; | ||
695 | |||
694 | s = &scroll[y]; | 696 | s = &scroll[y]; |
695 | s->invert = !s->invert; | 697 | s->invert = !s->invert; |
696 | } | 698 | } |
@@ -741,6 +743,8 @@ void lcd_remote_puts_scroll_style_offset(int x, int y, const unsigned char *stri | |||
741 | struct scrollinfo* s; | 743 | struct scrollinfo* s; |
742 | int w, h; | 744 | int w, h; |
743 | 745 | ||
746 | if(y>=SCROLLABLE_LINES) return; | ||
747 | |||
744 | s = &scroll[y]; | 748 | s = &scroll[y]; |
745 | 749 | ||
746 | s->start_tick = current_tick + scroll_delay; | 750 | 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 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; |