summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/lib/xlcd_scroll.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/lib/xlcd_scroll.c b/apps/plugins/lib/xlcd_scroll.c
index a26e65110c..8f55f4153e 100644
--- a/apps/plugins/lib/xlcd_scroll.c
+++ b/apps/plugins/lib/xlcd_scroll.c
@@ -138,15 +138,15 @@ void xlcd_scroll_down(int count)
138/* Scroll left */ 138/* Scroll left */
139void xlcd_scroll_left(int count) 139void xlcd_scroll_left(int count)
140{ 140{
141 int bitcount, oldmode; 141 int bitcount=0, oldmode;
142 int blockcount, blocklen; 142 int blockcount=0, blocklen;
143 143
144 if ((unsigned) count >= LCD_WIDTH) 144 if ((unsigned) count >= LCD_WIDTH)
145 { 145 {
146 rb->lcd_clear_display(); 146 rb->lcd_clear_display();
147 return; 147 return;
148 } 148 }
149 149
150#if LCD_DEPTH == 2 150#if LCD_DEPTH == 2
151 blockcount = count >> 2; 151 blockcount = count >> 2;
152 blocklen = LCD_FBWIDTH - blockcount; 152 blocklen = LCD_FBWIDTH - blockcount;
@@ -196,15 +196,15 @@ void xlcd_scroll_left(int count)
196/* Scroll right */ 196/* Scroll right */
197void xlcd_scroll_right(int count) 197void xlcd_scroll_right(int count)
198{ 198{
199 int bitcount, oldmode; 199 int bitcount=0, oldmode;
200 int blockcount, blocklen; 200 int blockcount=0, blocklen;
201 201
202 if ((unsigned) count >= LCD_WIDTH) 202 if ((unsigned) count >= LCD_WIDTH)
203 { 203 {
204 rb->lcd_clear_display(); 204 rb->lcd_clear_display();
205 return; 205 return;
206 } 206 }
207 207
208#if LCD_DEPTH == 2 208#if LCD_DEPTH == 2
209 blockcount = count >> 2; 209 blockcount = count >> 2;
210 blocklen = LCD_FBWIDTH - blockcount; 210 blocklen = LCD_FBWIDTH - blockcount;